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

Data Days is here! Join us now for 60+ days of learning, challenges, and connection. Learn more

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
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.