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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
chile
New Member

Calculated Column and Measure.

Hi Community.

 

Someone can help me with this issue.

chile_0-1649747645820.png

In here I expected measures result should be same column result.

but Columns result is correct, but Measures are not correct. 

 

Column expression:

duration_days = '00 - Service Order'[duration_seconds]/(3600*24)
duration_hours = '00 - Service Order'[duration_seconds]/3600
 
Measure expression:
Durations (Days) = SUM('00 - Service Order'[duration_days])
Durations (Hours) = SUM('00 - Service Order'[duration_hours])

Thanks
1 ACCEPTED SOLUTION
v-yanjiang-msft
Community Support
Community Support

Hi @chile ,

According to your description, I create a sample, it get the different result with yours, the column and measure get the same value.

vkalyjmsft_0-1650275882760.png

I guess it has something to do with the formula of [duration_seconds], in my sample, [duration_seconds] is a calculated column.

duration_seconds =
DATEDIFF (
    '00 - Service Order'[Lag last modified date time],
    '00 - Service Order'[Last Modified Datetime],
    SECOND
)

I also attach my sample below for reference.

 

Best Regards,
Community Support Team _ kalyj

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

View solution in original post

3 REPLIES 3
v-yanjiang-msft
Community Support
Community Support

Hi @chile ,

According to your description, I create a sample, it get the different result with yours, the column and measure get the same value.

vkalyjmsft_0-1650275882760.png

I guess it has something to do with the formula of [duration_seconds], in my sample, [duration_seconds] is a calculated column.

duration_seconds =
DATEDIFF (
    '00 - Service Order'[Lag last modified date time],
    '00 - Service Order'[Last Modified Datetime],
    SECOND
)

I also attach my sample below for reference.

 

Best Regards,
Community Support Team _ kalyj

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

SanketBhagwat
Solution Sage
Solution Sage

Hi @chile .
SUM will return a summarized total value.
Try to use CALCULATE or SUMX for the same.


Thanks,
Sanket.

If this post helps, then mark it as 'Accept as Solution' and give it a thumbs up.

Hi @SanketBhagwat Thanks for your answer, I have tried with SUMX, but result also like that.

chile_0-1649748884580.png

Durations (Hours) = SUMX('00 - Service Order','00 - Service Order'[duration_hours])
Durations (Days) = SUMX('00 - Service Order','00 - Service Order'[duration_days])

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors
Top Kudoed Authors