On picture you can see what I have, the number of students on each socioeconomic level (low, medium, high).
The database is conformed by students of 2017, 2019, 2020. And by year I have 1001 students in 2017, 1300 in 2019 and 1900 in 2020, a total of 4201 students.
I want to create a measure to graph the percentage of students by year. I mean, in 2017 that I have 193 students in level 'Bajo' (low in English), I want the percentage, 193/1001 *100, and the same for each year.
I've tried with quick measures of Power BI because I'm pretty new with DAX, but I think this needs to create a measure with code
Thanks in advance
B1_vf
? If you are using a dimension table, then you'd need to useALLSELECTED
on that table in your measure. – Alexis Olson