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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
Petan65
Frequent Visitor

Power BI Cumulative Sum

Hello all,
 
could someone please help me where is in my DAX formula mistake?
 
Míra = CALCULATE( SUM ( 'MORAVIAPRESS$G_L Entry'[Sales] ) ,
FILTER( ALL('MORAVIAPRESS$G_L Entry'[Sales]),
'MORAVIAPRESS$G_L Entry'[Date] <= MAX('MORAVIAPRESS$G_L Entry'[Posting date])))
 
I'm already desperate
 
Thank you
1 ACCEPTED SOLUTION
v-rongtiep-msft
Community Support
Community Support

Hi @Petan65 ,

Please have a try.

Míra =
CALCULATE (
    SUM ( 'MORAVIAPRESS$G_L Entry'[Sales] ),
    FILTER (
        ALL ( 'MORAVIAPRESS$G_L Entry' ),
        'MORAVIAPRESS$G_L Entry'[Date] <= selectedvalue( 'MORAVIAPRESS$G_L Entry'[Posting date] )
    )
)

If I have misunderstood your meaning, please provide your pbix file without privacy information and your desired output with more details.

 

Best Regards

Community Support Team _ Polly

 

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
v-rongtiep-msft
Community Support
Community Support

Hi @Petan65 ,

Please have a try.

Míra =
CALCULATE (
    SUM ( 'MORAVIAPRESS$G_L Entry'[Sales] ),
    FILTER (
        ALL ( 'MORAVIAPRESS$G_L Entry' ),
        'MORAVIAPRESS$G_L Entry'[Date] <= selectedvalue( 'MORAVIAPRESS$G_L Entry'[Posting date] )
    )
)

If I have misunderstood your meaning, please provide your pbix file without privacy information and your desired output with more details.

 

Best Regards

Community Support Team _ Polly

 

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

Avantika-Thakur
Solution Supplier
Solution Supplier

Hi @Petan65 ,

Can you please help elaborate your query with some sample data and what is expected as a result out of this DAX?

This DAX expression itself doesn't clarify your query.

 

Thanks!
Avantika

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

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

PBI_Carousel_NL_June

Fabric Community Update - June 2024

Get the latest Fabric updates from Build 2024, key Skills Challenge voucher deadlines, top blogs, forum posts, and product ideas.