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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
Anonymous
Not applicable

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 @Anonymous ,

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 @Anonymous ,

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. 

Anonymous
Not applicable

Hi @Anonymous .
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.

Anonymous
Not applicable

Hi @Anonymous 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
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

Check out the February 2026 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