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
gauravnarchal
Post Prodigy
Post Prodigy

KPI Indicator Card showing blank

Hello

 

When I use the below measure, the value is returned 0 instead of blank in the table, but in the KPI card, it still shows blank. How can I get the value in the KPI card to show 0 instead of blank?

 

Abandoned = CALCULATE(COUNT(Table1[Call Types]), CONTAINSSTRING(Table1[Call Types],"Abandoned")) + 0
 
gauravnarchal_0-1669449620412.png

 

 

gauravnarchal_1-1669449635185.png

 

 

1 ACCEPTED SOLUTION
mangaus1111
Solution Sage
Solution Sage

Hi @gauravnarchal ,

try this measure

Total Call Duration = 
VAR _Sum = SUM('Test'[Call Duration (hh:mm:ss)])
 VAR _Hours = (DAY(_Sum)+1)*24 + HOUR(_Sum)
 VAR _Minutes = MINUTE(_Sum)
 VAR _Seconds = SECOND(_Sum)
 RETURN
 _Hours&":"&_Minutes&":"&_Seconds

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

5 REPLIES 5
mangaus1111
Solution Sage
Solution Sage

Hi @gauravnarchal ,

try this measure

Total Call Duration = 
VAR _Sum = SUM('Test'[Call Duration (hh:mm:ss)])
 VAR _Hours = (DAY(_Sum)+1)*24 + HOUR(_Sum)
 VAR _Minutes = MINUTE(_Sum)
 VAR _Seconds = SECOND(_Sum)
 RETURN
 _Hours&":"&_Minutes&":"&_Seconds

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi @mangaus1111 

The measure which you have suggested is working, but when I add the "Area" into the page level filter, it gives me the incorrect total call duration result. What could be the reason?

 

Thanks

Hi @gauravnarchal ,

the problem is that the time format in power bi does not show values more than 24 hours.

 

I suggest you to create 2 cards, one for the hours, the other for minutes and seconds. If you use the filter pane works good.

mangaus1111_0-1669566767001.png

HH = INT(SUM(Test[Call Duration (hh:mm:ss)])*24)
MM-SS = FORMAT(SUM('Test'[Call Duration (hh:mm:ss)]),"nn:ss")
mangaus1111
Solution Sage
Solution Sage

Hi @gauravnarchal ,

dou you have some sample data to share? then I can try to debug your measure.

Hi @mangaus1111  - I have fixed the count measure. Can you help me fix the total call duration KPI card? It is showing the incorrect total of time.

 

I have attached the PBIX for your reference.

 

Click Here

 

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.