Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowGet inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.
Hello Experts,
I want to display custom message for missing value in Clustered Bar Chart. For Calculating values I am using measure.
Category | SubCategory | Profit |
Category A | A1 | 100 |
Category A | A2 | 200 |
Category A | A3 | 300 |
Category B | B1 | |
Category B | B2 | |
Category C | C1 | 600 |
Thanks
Solved! Go to Solution.
Hi @shoeb1359
Assuming that's how really your table is, you can replace blanks with zero and then use custom label.
Custom Label =
IF (
ISBLANK ( [Sum of Profit] )
|| [Sum of Profit] = 0,
"no available data",
FORMAT ( [Sum of Profit], "$#,#" )
)
you can use conditional formatting on label font color to make it red for those without data
Hi @shoeb1359 ,
We are grateful for your participation in the Microsoft Fabric Community forum.
As per requirement addressing your query.
**********************************************************
Utilization = DIVIDE(
SUM('Sheet1'[Completed Work]),
SUM('Sheet1'[Capacity (Hours)]),
BLANK()
)
**********************************************************
**********************************************************
Custom Message =
IF(
ISBLANK([Utilization]) || [Utilization] = 0,
"No available data",
FORMAT([Utilization], "0.0%")
)
**********************************************************
If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly.
Thanks,
Priyanka.
CST community member.
Hi @shoeb1359
Assuming that's how really your table is, you can replace blanks with zero and then use custom label.
Custom Label =
IF (
ISBLANK ( [Sum of Profit] )
|| [Sum of Profit] = 0,
"no available data",
FORMAT ( [Sum of Profit], "$#,#" )
)
you can use conditional formatting on label font color to make it red for those without data
Project | Developer | Capacity | Completed Work |
Project A | Developer 1 | 12 | 10 |
Project A | Developer 2 | 12.5 | 15 |
Project B | Developer 1 | 13 | 2.5 |
Project B | Developer 3 | ||
Project C | Developer 4 | ||
Project D | Developer 2 | 10 | 11 |
Hi ,
I have attached my screenshot from sample file. Not sure what i am missing
Thanks
It's not working in my Case
In sample data we are referring whole number and single column but in real data it's Avg % Utilization which is basically based on 2 columns.
Hi @shoeb1359 ,
We are grateful for your participation in the Microsoft Fabric Community forum.
As per requirement addressing your query.
**********************************************************
Utilization = DIVIDE(
SUM('Sheet1'[Completed Work]),
SUM('Sheet1'[Capacity (Hours)]),
BLANK()
)
**********************************************************
**********************************************************
Custom Message =
IF(
ISBLANK([Utilization]) || [Utilization] = 0,
"No available data",
FORMAT([Utilization], "0.0%")
)
**********************************************************
If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly.
Thanks,
Priyanka.
CST community member.
Follow the same , Still not working .
Can you share your pbix file. Wanted to cross check formatting part .you forgot to mention here
Attached!
As the proposed solutions are based on the sample data, the sample should always represent the actual data and is not overly simplified.
As I have dynamic data it seems it's not worked. I tried but no luck.
Please share file if you did at your end
Hi @shoeb1359
You can't directly show a custom message inside a clustered bar chart for missing values. Bar charts only display numeric values, not text messages.
Workarounds:
Card Visual for Messages:
Placeholder Values:
These methods help convey messages for missing values indirectly, since bar charts cannot directly display text-based messages in place of numeric values.
If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code FABINSIDER for a $400 discount!
Check out the February 2025 Power BI update to learn about new features.
User | Count |
---|---|
86 | |
69 | |
66 | |
51 | |
34 |
User | Count |
---|---|
114 | |
97 | |
75 | |
65 | |
39 |