Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
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?
Solved! Go to Solution.
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&":"&_SecondsIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
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&":"&_SecondsIf 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.
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.
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 39 | |
| 37 | |
| 33 | |
| 32 | |
| 29 |
| User | Count |
|---|---|
| 132 | |
| 88 | |
| 82 | |
| 68 | |
| 64 |