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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
SachinFG
Frequent Visitor

Help with Dax

Hi team,

 

I am stuck with dax to calculate the total sum for a dealer sales for the promotional period. sample data is below.

 

end result required is for dealer 5032917 total sum would be $36000. 

There will be dealer sales after the end of promotionla period which is not requirted to be calculated. 

 

Thanks in advance.

 

DealerStartEndvalue
50329171/10/202221/10/2022$12,000
50329171/07/202328/07/2023$12,000
50329171/09/202215/09/2022$12,000

 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi  @SachinFG ,

 

Calculated column.

Column =
SUMX(
    FILTER(ALL('Table'),
    'Table'[Dealer]=EARLIER('Table'[Dealer])),[value])

measure.

Measure =
SUMX(
    FILTER(ALL('Table'),
    'Table'[Dealer]=MAX('Table'[Dealer])),[value])

Result:

vyangliumsft_0-1688719773283.png

Best Regards,

Liu Yang

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

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Hi  @SachinFG ,

 

Calculated column.

Column =
SUMX(
    FILTER(ALL('Table'),
    'Table'[Dealer]=EARLIER('Table'[Dealer])),[value])

measure.

Measure =
SUMX(
    FILTER(ALL('Table'),
    'Table'[Dealer]=MAX('Table'[Dealer])),[value])

Result:

vyangliumsft_0-1688719773283.png

Best Regards,

Liu Yang

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

Helpful resources

Announcements
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.