Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

Display ZERO if No Data found

Hi PBI Guris

 

I have a very simple chart below and which is the number of “Critical” alerts for a particular AWS account.

jimmyg706_0-1705248387075.png

 

 

As you can see in the beginning  – it stated at 24 x Critical Alerts found. In December 2023 it was down to 2x hits.

 

In late December 2023 I was told they are all clear and when I did a data refresh I saw no data.

 

And well that’s because I expected.    I would like to however to show a value of ZERO and I was wondering how best you could do this.

 

If I mimic this in XLS  its currently showing as below where there are no hits for "Crtical"

 

jimmyg706_1-1705248458385.png

 

Ideal situation is as follows:

 

I added the data in yellow to my source just so I could see my Goal. (Fig 2)

 

Maybe its my brain and was think of palying with the data source but I would rather do  this in PBI. So every month there will be a scan but to find no values with the "Critcal" label is our aim; its just how to plot this?

 

Comments welcome

 

Fug 2

 

jimmyg706_2-1705248624358.png

Thanks

 

Jimmy

 

1 ACCEPTED SOLUTION
az38
Community Champion
Community Champion

Hi @Anonymous 

 

I suggest, you use an implict measure, that is always a bad practice

Good is to create an explicit and +0 and the end, like

Qty measure = CALCULATE(SUM('Table'[Qty])) + 0

Use this measure as a value


do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

@az38 

 

Indeed I re-thought what I was doing and I have my result

 

I just  used the following with some filters

 

jimmyg706_1-1705252043881.png

 

Count_Critical = CALCULATE ( COUNTROWS ( DOME9), DOME9[Severity] = "Critical" ) + 0

 

 

 

 

jimmyg706_0-1705249953852.png

 

az38
Community Champion
Community Champion

Hi @Anonymous 

 

I suggest, you use an implict measure, that is always a bad practice

Good is to create an explicit and +0 and the end, like

Qty measure = CALCULATE(SUM('Table'[Qty])) + 0

Use this measure as a value


do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.