This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreLevel up your Power BI skills this month - build one visual each week and tell better stories with data! Get started
Hello,
I have BI financial statements and would like to have a hyphen display instead of a blank in case of no data or zero value. Below is an example of the financial statement:
The columns of numbers are each a measure with a switch statement such that the value for each row is a separate measure. Here is the measure for the column "AUG 2020":
How can I get hyphens to display in the blanks in the table?
Thanks for your help.
- Stacey
Solved! Go to Solution.
You could wrap each of the switch statements with IF ISBLANK([Nautic...YTD]), "-", FORMAT(DIVIDE...)
that should do it!
You could wrap each of the switch statements with IF ISBLANK([Nautic...YTD]), "-", FORMAT(DIVIDE...)
that should do it!
Thank you for this suggestion! I wasn't able to use the "is blank" as in many cases the value was 0, but I was able to do "IF = 0" and get it to return the hyphen.
Nice!
Push your switch statement into a variable
then
RETURN IF(0+variable==0,"-",variable)
HI @lbendlin
__Cost K$ =
var _CostK = DIVIDE(CALCULATE(sum('Fact'[Allocation]), 'Fact'[Measurement] = "PH"), 1000) + 0
RETURN
IF(0.00 + _CostK = 0.00,"-")
I m trying this measure but its not working .
Getting this issue could you please help .
I have posted my question here please help me to reply there.
this works
My switch statement has some intentional blanks (where I want a blank row between figures), so this approach isn't working. Thank you for offering the suggestion, though.
Check out the April 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 30 | |
| 24 | |
| 23 | |
| 17 | |
| 15 |
| User | Count |
|---|---|
| 63 | |
| 36 | |
| 30 | |
| 23 | |
| 22 |