Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!
Hello all
I'm having a problem trying to compare a value to an average value. Here's the scenario, using AdventureWorks as an example
I have a measure
Avg Days to Manufacture =
Solved! Go to Solution.
Hi @vdog01
Glad to hear it has been solved, please accept the solution to close this thread.
Regards,
Cherie
Hi @vdog01
You may create a measure instead of calculated column when the values are changed by filters. You may try below measure.
CF to Avg=SUM('Product'[Days To Manufacture])/'Product'[Avg Days to Manuf]
Maybe it needs some modification for the sum measure. You may refer CALCULATE, ALLxxx functions. Then create a measure for 'sum of Days To Manufacture'.
Calculated columns and Measures in DAX.
If you need further help, please show us the context of table visual or the sample data.
Regards,
Cherie
Hi thanks for the update
I ended up doing the following (which seems to work
Changed Average to
Average = CALCULATE(AVERAGE(Product[Days To Manufacture]),ALLSELECTED(Product))
then in the CF to Avg I made it
AVERAGEX(Product, Product[Days To Manufacture]) / [Average]
It was the first calculation when it was a column that didn't change depending on my selection.
Hi @vdog01
Glad to hear it has been solved, please accept the solution to close this thread.
Regards,
Cherie
User | Count |
---|---|
140 | |
113 | |
104 | |
77 | |
65 |
User | Count |
---|---|
136 | |
118 | |
101 | |
71 | |
61 |