Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Need assitance for a bar chart in x axis instead of using a measure (used as count distinct) for status could we use text value to be displayed of Pass or Fail.
From
To
If this cannot be done in bar chart please let me know if any other visual could be used to achieve this.
unable to Attach PBIX file but below is tables to enter in power bi desktop.
| Application | Status |
| App 1 | Pass |
| App 10 | Pass |
| App 2 | Pass |
| App 3 | Fail |
| App 4 | Fail |
| App 5 | Fail |
| App 6 | Fail |
| App 7 | Pass |
| App 8 | Pass |
| App 9 | Pass |
Solved! Go to Solution.
Hey @eng_123,
Looking at your images, I can see you want to display "Pass" and "Fail" text labels on your bars instead of the count values. This is definitely achievable in Power BI! Here are several approaches:
Status Text =
IF([Status] = 1, "Pass", "Fail")
If your current Status field is numeric (1/0), create a new calculated column:
Status Label =
SWITCH([Status],
1, "Pass",
0, "Fail",
"Unknown"
)
Then use this new column in your data labels.
If the bar chart doesn't work perfectly, consider these alternatives:
You can also:
Status Display = IF(MAX([Status]) = 1, "Pass", "Fail")
Fixed? ✓ Mark it • Share it • Help others!
Best Regards,
Jainesh Poojara | Power BI Developer
Thank you changed it and seems to work fine now
Hey @eng_123,
Looking at your images, I can see you want to display "Pass" and "Fail" text labels on your bars instead of the count values. This is definitely achievable in Power BI! Here are several approaches:
Status Text =
IF([Status] = 1, "Pass", "Fail")
If your current Status field is numeric (1/0), create a new calculated column:
Status Label =
SWITCH([Status],
1, "Pass",
0, "Fail",
"Unknown"
)
Then use this new column in your data labels.
If the bar chart doesn't work perfectly, consider these alternatives:
You can also:
Status Display = IF(MAX([Status]) = 1, "Pass", "Fail")
Fixed? ✓ Mark it • Share it • Help others!
Best Regards,
Jainesh Poojara | Power BI Developer
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
Check out the November 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 66 | |
| 46 | |
| 42 | |
| 26 | |
| 19 |
| User | Count |
|---|---|
| 196 | |
| 127 | |
| 102 | |
| 67 | |
| 49 |