Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
I have a bar chart with a date on the x-axis and a $ amount as the value. When I make a year selection in a slicer, several of the values in the bar chart go to zero. Is it possible to remove the data labels in the bar chart when the value is 0?
Solved! Go to Solution.
Rewrite your measure to use a variable and an IF statement to blank out zeroes. Assuming your measure is something like:
Sales = SUM(SalesTable[Amount])
...you would rewrite it as:
Sales = VAR result = SUM(SalesTable[Amount]) RETURN IF(result = 0, BLANK(), result)
This will turn zeroes into blanks, which do not show up in data labels.
Proud to be a Super User!
Hi @mjmar025,
Could you please mark the proper answer if it's convenient for you? That will be a help to others.
Best Regards!
Dale
Rewrite your measure to use a variable and an IF statement to blank out zeroes. Assuming your measure is something like:
Sales = SUM(SalesTable[Amount])
...you would rewrite it as:
Sales = VAR result = SUM(SalesTable[Amount]) RETURN IF(result = 0, BLANK(), result)
This will turn zeroes into blanks, which do not show up in data labels.
Proud to be a Super User!
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
69 | |
68 | |
40 | |
29 | |
26 |
User | Count |
---|---|
89 | |
49 | |
44 | |
38 | |
37 |