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'm trying to to create a row in a matrix that would calculate the average for each column. Each column is a different measure. So I have 5 columns of measures, and want 1 row at the bottom that is the Average.
Any ideas?
Thanks.
It's possible, which dimension are you going to use for your rows in the matrix?
I'm sorry, if this isn't what you mean, but The columns would basically be different types of revenue(each its own measure) and the different rows would be various properties:
Exactly,
If you want an average row then you would need to add a row to your properties table:
Property | ID |
Property 1 | 1 |
Property 2 | 2 |
Property 3 | 3 |
Property 4 | 4 |
Property 5 | 5 |
Property 6 | 6 |
Average |
This should mean that you have one row in your matrix which displays "Average" instead of a property.
Now you go into your measures and write something like this:
IF( SELECTEDVALUE(Property[property]) = "Average" ; Calculate(AVERAGE([amount]) ; ALL(Properties)) ; [Amount])
It should return an average when it finds that post in the properties table and otherwise just return the normal amount on the other posts.
Hope it works,
Johannes
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 |
---|---|
114 | |
100 | |
78 | |
75 | |
50 |
User | Count |
---|---|
144 | |
109 | |
108 | |
88 | |
61 |