Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi!
Earlier I asked about how I could calculate an average above several categories in a line plot. I used the DAX syntax:
New measure=CALCULATE(AVERAGE('Table'[Value]), ALL('Table'[Category1]),
ALL('Table'[Category2]), ALL('Table'[Category3]))
This worked really fine. However, now I want to calculate an average within category1 and above all other categories. Thus, I want an average for each level in category1. Is this possible?
Regards Marit
Solved! Go to Solution.
Hi @Marit ,
You just need to calculate the average for each category:
AVERAGE 1= CALCULATE(AVERAGE('Table'[Value]); ALLSELECTED(Table[Category1])
Just repeat this for each of the category.
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em Português@Marit , check if these two can help
https://community.powerbi.com/t5/Desktop/SUM-of-AVERAGE/td-p/197013
https://community.powerbi.com/t5/Desktop/Percentage-of-subtotal/td-p/95390
Hi @Marit ,
You just need to calculate the average for each category:
AVERAGE 1= CALCULATE(AVERAGE('Table'[Value]); ALLSELECTED(Table[Category1])
Just repeat this for each of the category.
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsCovering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
104 | |
95 | |
80 | |
67 | |
62 |
User | Count |
---|---|
138 | |
107 | |
104 | |
82 | |
63 |