Forum Discussion
Hiding values in matrix visual
Hi all,
I have a matrix visual showing median values by job family and job level. I want to hide all values that are either <100% or >100%. Until now, I've tried fixing it by
1) Show only values between -100% and +100% (exclusive) in the filter pan
2) Adding IF and BLANK functions in the measure I use for my matrix values
However, both approaches have failed. Does anyone know how to find a way around this?
Thanks,
Fizzy_Mojito
6 Replies
- mahoneypat
Microsoft Employee
Please try this expression.
NewMeasure = var vMale = [TTC Median Male]
var vDiff = vMale - [TTC Median Female]
var vResult = IF(vDiff<=-1 || vDiff>=1, BLANK(), DIVIDE(vDiff, vMale))
return vResult
Pat
- AnonymousNot applicable
Hi Anonymous,
If these records did not really exist in your table, you can't directly use if statement to handle them.
For this scenario, you need to create a new table with all category type values to replace the raw fields you used on the matrix.
After these steps, you can write a measure with selectedvalue function to extract value and replace displayed values.My Favorite DAX Feature: SELECTEDVALUE with SWITCH
Regards,
Xiaoxin Sheng
- AnonymousNot applicable
For this scenario, you need to create a new table with all category type values to replace the raw fields you used on the matrix.
Would you mind elaborating more on what you mean by this? I'm happy to share more on my original dataset, if helpful.
- AnonymousNot applicable
Hi Anonymous,
Sure, you can share a pbix file with some dummy here then we can get it and test coding formulas.
How to Get Your Question Answered Quickly
You can also take a look at the following link of similar requirements if help:
Solved: Display zero instead of blank in matrix - Microsoft Power BI Community
Regards,
Xiaoxin Sheng