Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Hello Community,
I am relatively new to Power BI desktop. I need help with one particular requirement that I came across:
I have a stacked bar graph - In X-axis, I have 4 Quarters: Q1, Q2, Q3 and Q4 and the Y-axis shows a distinct count value. The stacked bar is split by a legend with 2 values: Expired and Pending Expiry.
The table view for the same data:
In the Table view, I can see the value 0 for Q1. But I do not see the same in the Stacked bar graph.
I need to display the 0 in the stacked bar graph when there is no data.
The formula I have used for the count is:
Hi, try adding +0 in the very end of your expression:
SKUCount = IF(ISBLANK(DISTINCTCOUNT('Main Table'[SKU])),0,DISTINCTCOUNT('Main Table'[SKU])) +0
Hello @olgad , Thank you for your suggestion! I tried it, but it still seems to be not working:
Am I missing something?
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
119 | |
83 | |
47 | |
42 | |
33 |
User | Count |
---|---|
190 | |
78 | |
72 | |
54 | |
45 |