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
pbuzic
New Member

Help on DAX formula for totals

Hi everyone,

 

please I need help for simple DAX formula to get new column (Totals) on right side where i could have sum of every change between vendors and customer by date. Example with new Totals is picture:

 

pbuzic_0-1674653192767.png

 

Power query from Vendor table:

Date | Vendor_LCY | Description

 

Power query from Customer table:

Date | Customer_LCY| Description

 

1 ACCEPTED SOLUTION
v-jingzhang
Community Support
Community Support

Hi @pbuzic 

 

Do you have a Date table in the model? If so, you can create the following measure and add it to the table visual. 

Totals =
VAR __curDate = MAX ( 'Date'[Date] )
RETURN
    CALCULATE (
        SUM ( 'Vendor'[Vendor_LCY] ),
        ALL ( 'Date' ),
        'Date'[Date] <= __curDate
    )
        + CALCULATE (
            SUM ( 'Customer'[Customer_LCY] ),
            ALL ( 'Date' ),
            'Date'[Date] <= __curDate
        )

Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

What's stopping you doing Sum(Vendor_LCY) + SUM(Customer_LCY) in a measure?

v-jingzhang
Community Support
Community Support

Hi @pbuzic 

 

Do you have a Date table in the model? If so, you can create the following measure and add it to the table visual. 

Totals =
VAR __curDate = MAX ( 'Date'[Date] )
RETURN
    CALCULATE (
        SUM ( 'Vendor'[Vendor_LCY] ),
        ALL ( 'Date' ),
        'Date'[Date] <= __curDate
    )
        + CALCULATE (
            SUM ( 'Customer'[Customer_LCY] ),
            ALL ( 'Date' ),
            'Date'[Date] <= __curDate
        )

Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.

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!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 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
Top Kudoed Authors