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.
I need this card to show a 0 instead of a blank when the green piece of the pie chart is selected.
The card is set up as follows.
The overall status column has this data. 30 = Red - 20= Amber - 10 = Green
Hi @Jhadur, Hope you are doing good!
You can do it by simply creating a measure to calculate count of overall status.
Please use the below measure:
Count of overall status = Count('Projects'[Overall Status])+0
Add this measure in your card and it will show 0 in place of blank
Did I answer your question? Mark my post as a solution! Appreciate your Kudos !!
Hi @Jhadur ,
Have you solved your problem yet? If so, you can mark the correct answer as solution.
Best Regards,
Xianda Tang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Jhadur ,
Thank you for @Greg_Deckler answer , and I have other suggestions for you:
Below is my table:
The following DAX might work for you:
Measure = IF(SELECTEDVALUE('Table'[Color]) = "Green" , 0 , BLANK())
The final output is shown in the following figure:
Best Regards,
Xianda Tang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@Jhadur Not sure what implicit aggregation you are using, count, average, ? But, in any case, create a measure to duplicate that and +0
Thanks Greg. I am doing a count of the Overall Status shown above. I am new to Power BI. How would I write the meaure to count all of the overall status but only show 0 if the overall status is Green (10)?
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the February 2025 Power BI update to learn about new features.
User | Count |
---|---|
84 | |
78 | |
41 | |
40 | |
35 |