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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
UmairKamal
Helper I
Helper I

a simple sum function giving blank result

My Report contains the following headers

 

Date / Time
Officer
Street Name
Record Type
Event Date
Device ID
Summary Type
Time Spent (hh:mm:ss)
Map View
Time
Key
Number
Week
Visits
Total Seconds

 

The summary Type contains break Start, Break end, Shift start, Shift end, Enter Street and Exit Street depending upon the type of tour by the Patrolling Offier. 

 

The Time Spent (hh:mm:ss) contains the difference between two events and shows the value against second event e.g. Break End, Exit Street etc. and is in the format hh:mm:ss

 

I converted this in total seconds in Power BI and the result is in the Total Seconds Column.

 

I have used this to create other measures, however, when I create a measure to calculate the total break time in seconds using the DAX below, I get a blank result

 

Total Break Time (seconds) =

CALCULATE(SUM('Report'[Total Time (seconds)]), 'Report'[Summary Type] = "Break end")
 
Any advice on this will be appreciated. thanks.
3 REPLIES 3
bcdobbs
Community Champion
Community Champion

Few things to check...

Is your seconds column showing as a number column (integer, decimal or currency).

 

Is "Break end" exactly the value... check for spaces at the end. (You can use Trim in transform data to sort).



Ben Dobbs

LinkedIn | Twitter | Blog

Did I answer your question? Mark my post as a solution! This will help others on the forum!
Appreciate your Kudos!!
_AAndrade
Super User
Super User

Hi @UmairKamal,

Could you share a simple pbix with some date so I can take a look?





Did I answer your question? Mark my post as a solution! Kudos are welcome.

Proud to be a Super User!




unfortunately I am unable to upload any data from my work laptop. but thanks for your response, i worked it out myself. there was an issue with the filters which was causing the blank results. 

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors