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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
apuype
Frequent Visitor

SUMX with Related Column Assistance

Good afternoon, looking for some guidance on a SUMX formula as the totals are not working. Wondering if I need to change to a different function to calculate these? 

Total Hours Saved = SUMX(order_post_hist,order_post_hist[Order Count]*RELATED('Load Metrics'[Time Per Order (M)]))/60

apuype_0-1689182589570.png

 

If I throw the same values in excel

500.030.03
5390.54.49
1160.751.45
16320.513.60
51800.2521.58

Thank you! 
2 REPLIES 2
v-rongtiep-msft
Community Support
Community Support

Hi @apuype ,

Please have try.

Create a measure.

measure =
VAR _1 =
    (
        MAX ( 'order_post_hist'[Order count] )
            * MAX ( 'Load Metrics'[Time Per Order(M)] )
    ) / 60
RETURN
    SUMX ( ALL ( 'order_post_hist' ), _1 )

 

How to Get Your Question Answered Quickly 

 

If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .

 

Best Regards
Community Support Team _ Rongtie

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

 

 

 

Thank you, it will not accept as my load metrics value needs to use the related function - I have tried inserting it a few ways but it will not take

apuype_0-1689337374635.png

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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