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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
medwards807
Helper I
Helper I

KPI Visual that shows no value however need to show Zero

 

I am using Row Level Security and in the condition that the user does not have any past due opportunity records, the KPI show no value, however in this condition I would prefer a 0 (Zero) to display. 

 

I have other similar conditions, where a (Blank) was showing and the IF(ISBLANK(<Measure>), 0,<Measure>) worked just fine. In this condition my measure is summing no records, and I have tested for Blank(), Null, 0, "".

 

Nothing appears to work, anyone seen this before and have a solution? My desired goal is to have a zero return for this KPI when no data exist.  

 

 

Measure used as Indicator for KPI Visual

 

# of Open Opportunities = if(ISBLANK(SUM(opportunities[Open Opportunity Count])),0, sum(opportunities[Open Opportunity Count]))

 

 

Calculated Column:

Open Opportunity Count = if(opportunities[Status]="Open",1,0)

1 ACCEPTED SOLUTION
v-huizhn-msft
Employee
Employee

Hi @medwards807,

Besides you use any other expression (IF(ISBLANK(<Measure>), 0,<Measure>) ), you can use another expression returns BLANK ( ).

Measure = CALCULATE ( SUM (table[column] ), FILTER (... ) ) + 0

Please use the formula and check if you can get a 0 when its blank.

Let me know if you have any issue.

Best Regards,
Angelia

View solution in original post

3 REPLIES 3
v-huizhn-msft
Employee
Employee

Hi @medwards807,

Besides you use any other expression (IF(ISBLANK(<Measure>), 0,<Measure>) ), you can use another expression returns BLANK ( ).

Measure = CALCULATE ( SUM (table[column] ), FILTER (... ) ) + 0

Please use the formula and check if you can get a 0 when its blank.

Let me know if you have any issue.

Best Regards,
Angelia

I've used the +0 in KPI cards, problem is when you use the same measures in a table it can bloat your table due to the zero.





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Angelia,

Thanks the + 0 worked like a charm. I did also have to add some experssions and changed SUM( to SUMX(

And it worked as i needed.

Thanks

Mike

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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