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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
awolf88
Helper II
Helper II

Dax Filter - Comparing sum on specific date against month start

Dear team,

 

need som help from you geniusses agian as I can't seem to figure this out for the life of me: 

 

I have a simple table as shown below (except yellow - it is what im trying to achieve):

The table displays several date entries and captures the remainder of "Open Orders" per that date alongside the "sales" from that very same date. Both added together result in what I project to be the outcome by the month's end per that according date. 

awolf88_0-1668524389556.png

Now what I'm looking for is the change in % vs. the starting value of the month. So Projected value from 02.11.2022 vs. 01.11.2022, or projected 04.11.2022 vs. 01.11.2022, etc. etc.

 

What I've tried was coding it in Dax as such:

Delta month start = 
sum(Projected) / 
calculate( sum (Projected), FIRSTDATE(Date_Archived))  ) - 1

It doesnt seem to be running my way tho. 

 

Could anyone kindly point me in the right direction here, please?

 

Thanks so much in advance!

 

Best,

Alex

 

1 ACCEPTED SOLUTION
v-jianboli-msft
Community Support
Community Support

Hi @awolf88 ,

 

Please try:

Measure =
VAR _a =
    CALCULATE (
        SUM ( 'Table'[Projected end of month] ),
        FILTER (
            ALL ( 'Table' ),
            [Date_Achieved] = MINX ( ALL ( 'Table'[Date_Achieved] ), [Date_Achieved] )
        )
    )
VAR _b =
    SUM ( 'Table'[Projected end of month] )
RETURN
    DIVIDE ( _b - _a, _a )

Final output:

vjianbolimsft_0-1668576659209.png

Best Regards,

Jianbo Li

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

2 REPLIES 2
awolf88
Helper II
Helper II

Thank you so much for your help, Jianbo! Much appreciated!

v-jianboli-msft
Community Support
Community Support

Hi @awolf88 ,

 

Please try:

Measure =
VAR _a =
    CALCULATE (
        SUM ( 'Table'[Projected end of month] ),
        FILTER (
            ALL ( 'Table' ),
            [Date_Achieved] = MINX ( ALL ( 'Table'[Date_Achieved] ), [Date_Achieved] )
        )
    )
VAR _b =
    SUM ( 'Table'[Projected end of month] )
RETURN
    DIVIDE ( _b - _a, _a )

Final output:

vjianbolimsft_0-1668576659209.png

Best Regards,

Jianbo Li

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

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors