Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
I have a simple SWITCH formula to switch between different measures in the matrix. One of the measures need to show in % format so I'm using
FORMAT([Measure], "0.0%")
but this measure is adding blank rows in the matrix (as explained here FORMAT function (DAX) - DAX | Microsoft Learn "If value is BLANK() the function returns an empty string")
I found the solution in this thread: Solved: Re: Visual showing blank rows using SELECTEDVALUE ... - Microsoft Power BI Community
where it is suggested to use:
IF ( ISBLANK ( [Measure] ), BLANK (), FORMAT ( [Measure], "0.0%" ) )
and after adding this the blank rows disappear which is great however it looks like the measure is now too heavy and users can't export the summarized data from the matrix. Even a very small export is failing due to query being too heavy. As soon as I get rid of IF(ISBLANK),BLANK() the export works again. Any suggestions for alternative that would allow me to get rid of blank rows and not affect the export possibility?
Solved! Go to Solution.
This didn't work unfortunately. The moment I add IF(NOT(ISBLANK) (whether it's in the VAR or not) the query becomes too heavy to export.
I found another solution myself. Basically instead of using a SWITCH formula I tried creating a field parameter which does not require FORMAT formula to show correct format and therefore does not require IF (NOT(ISBLANK)
Thanks anyway!
This didn't work unfortunately. The moment I add IF(NOT(ISBLANK) (whether it's in the VAR or not) the query becomes too heavy to export.
I found another solution myself. Basically instead of using a SWITCH formula I tried creating a field parameter which does not require FORMAT formula to show correct format and therefore does not require IF (NOT(ISBLANK)
Thanks anyway!
Store the measure result in a variable so that it is only calculated once
VAR MeasureResult = [Measure]
RETURN IF( NOT( ISBLANK( MeasureResult ) ), FORMAT( MeasureResult, "0.0%") )
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
10 | |
9 | |
8 | |
8 | |
7 |
User | Count |
---|---|
13 | |
12 | |
11 | |
11 | |
8 |