The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
Hi,
I'm trying to hide empty values in a matrix visual.
In the example below I have two measures for each month/year. If both measures are empty in the same month (for all rows), that month shoudn't be visible. If all months don't have values, the year shouldn't be visible:
I read another similar posts, but didn't found any solution.
Best regards,
Filipe Gaspar
Solved! Go to Solution.
@FGaspar - Yes, you can do this like:
Measure =
VAR __Calc = <some calculation>
RETURN
IF(__Calc=0,BLANK(),__Calc)
Hi @Greg_Deckler ,
Thanks for your reply.
Can I change the measure (I have a live connection to SSAS) to retrieve "blank" instead of "0"?
If so, can I hide the blank values?
@FGaspar - Yes, you can do this like:
Measure =
VAR __Calc = <some calculation>
RETURN
IF(__Calc=0,BLANK(),__Calc)
Neither of the above proposed solutions above work if the values are null
@c-es That's why it is often a good idea to + 0 to any calculation if you need to check something like that.
User | Count |
---|---|
65 | |
60 | |
55 | |
54 | |
31 |
User | Count |
---|---|
180 | |
88 | |
70 | |
46 | |
46 |