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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
zsodf
Regular Visitor

Total of column

Hello, 

I created a measure "SpendTime" and when I display the table , total of SpendTime is false and I dont know why .

I tried to create a new measure to sum "SpendTime" but doesn't  work because I think we can't not sum a measure 

So I need help please 

 

zsodf_0-1665131106833.png

 

3 REPLIES 3
amitchandak
Super User
Super User

@zsodf , Try a measure like

 

Sum time =
var _time = sumx(Time1,HOUR(Time1[_spendTime])*3600+Minute(Time1[_spendTime])*60 +SECOND(Time1[_spendTime]))
return
time(QUOTIENT(_time,3600) ,QUOTIENT(Mod(_time,3600),60),mod(Mod(_time,3600),60))

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

@amitchandak , I tried but I have the same problem 

 

zsodf_0-1665134433890.png

 

Hi, @zsodf 

According to your description, your Total presents data that is not a sum, and calculating total in measure is calculated according to the current filtering context rather than a simple sum.

There are two ways to modify total:

(1)Modify the measurement writing method and use functions such as HASONEVALUE() or SUMX().

(2)Use New Column, and the column is placed inside the visual.

 

Best Regards,

Aniya Zhang

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

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

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
Top Kudoed Authors