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.
How do I create a measure to compare the difference between the Mean and Median column for each row.
If the difference is >25%, take the value of median
Solved! Go to Solution.
Hi @ephramz ,
Create a measure.
Compare =
var diff_Mean =
(SELECTEDVALUE('Table'[Mean])-SELECTEDVALUE('Table'[Median]))/SELECTEDVALUE('Table'[Mean])
return
IF(diff_Mean>0.25,SELECTEDVALUE('Table'[Median]),diff_Mean)
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Best Regards
Community Support Team _ Polly
Hi @ephramz ,
Create a measure.
Compare =
var diff_Mean =
(SELECTEDVALUE('Table'[Mean])-SELECTEDVALUE('Table'[Median]))/SELECTEDVALUE('Table'[Mean])
return
IF(diff_Mean>0.25,SELECTEDVALUE('Table'[Median]),diff_Mean)
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Best Regards
Community Support Team _ Polly
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 |
---|---|
106 | |
94 | |
75 | |
62 | |
50 |
User | Count |
---|---|
147 | |
106 | |
104 | |
87 | |
61 |