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!
I need that the following table visual displays the simple average instead of the weighted average:
The simple average should just be 3.9 in the first column and 36.7 in the second one.
Context:
The result displayed by the Total row is the Weighted Average because the region of Dakar has more opportunities in it than the regions of Bangkok and Amman. This means that in the first column the value 9.7 from Dakar has more weight than the other regions, because the region of Dakar has more information than the other two regions.
It is required that the simple average should be displayed.
The data model looks like this (notice the direction of the relationships):
In the first table, the column 'Draft to Submitted' is a KPI that calculates the average value for a certain KPI Code. The DAX for this measure is:
Then the table simply displays this KPI by Region Code from the Region table. The total is the weighted average and the simple average is required in this case.
I am not sure if this is possible or if I am doing something wrong regarding the measure or the structure of the data model, but any help on this would be much appreciated.
Thanks for your time!
Solved! Go to Solution.
@Anonymous
maybe try something like below
=if(hasonevalue(region),[Draft to Submitted], averagex(values(region),[Draft to Submitted])
Proud to be a Super User!
@Anonymous
maybe try something like below
=if(hasonevalue(region),[Draft to Submitted], averagex(values(region),[Draft to Submitted])
Proud to be a Super User!
Thank you so much! This works
you are welcome
Proud to be a Super User!
Covering 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 |
---|---|
146 | |
110 | |
107 | |
86 | |
63 |