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.
I have a measure similar to this
Calc of = 'TableX'[Number of X] / 1000
Here's the idea:
I have a filter that selects years from 2016-2019. If I select more than one year in the filter the measure above needs to take the average of this and divide it by a thousand. So if the value is 500 for the year 2017 and 200 for the year 2018 the value of the measure should be
Calc of = 350/1000
where 350 is the average of the two numbers. Right now I just get 700/1000. I tried using the AVERAGEX function but it didn't quite work.
Solved! Go to Solution.
It's the old average of an average. Try the following. Always better to use DIVIDE instead of /:
Total Average = AVERAGE( Table1[Value] )
Total Value = Sum( Table1[Value] ) Average = DIVIDE( AVERAGEX( VALUES ( Table1[Year]),[Total Average]), 1000 )
It's the old average of an average. Try the following. Always better to use DIVIDE instead of /:
Total Average = AVERAGE( Table1[Value] )
Total Value = Sum( Table1[Value] ) Average = DIVIDE( AVERAGEX( VALUES ( Table1[Year]),[Total Average]), 1000 )
Hi @Anonymous probably a bad formulation from my part in the initial message but the "table" is actually a measure, so how does one go about it from that point of view?
I used an alternative (perhaps not so elegant) method where I used DISTINCTCOUNT(TableX[Years]) and multplied it with the denominator.
I dont follow 100%. If it works for what you need then thats all that matters 🙂
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 | |
97 | |
85 | |
70 | |
61 |
User | Count |
---|---|
151 | |
120 | |
103 | |
87 | |
68 |