We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now
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
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
| User | Count |
|---|---|
| 57 | |
| 40 | |
| 36 | |
| 18 | |
| 18 |
| User | Count |
|---|---|
| 70 | |
| 67 | |
| 38 | |
| 34 | |
| 23 |