Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Hello Guys,
everyone knows the quick measure of running totals or the DAX function YTD. I want to calculate the month over month change of a running total.
Is there a best practice dax expression?
Solved! Go to Solution.
I have found it out myself. It seems to be working. Here the resolution
1. Step: Sum the initial variable "Sales" sales = SUM( [Sales] ) 2. Step: Calculate the cumulated value of "sales" sales **bleep** = CALCULATE( [Sales]; FILTER( ALLSELECTED([Date]); ISONORAFTER([Date]; MAX([Date]); DESC) ) ) 3. Step: Calculate the percentage difference between 1 and 2 Sales **bleep** MoM% = DIVIDE( [Sales] ; [Sales **bleep**] - [Sales] ; 0 )
I have found it out myself. It seems to be working. Here the resolution
1. Step: Sum the initial variable "Sales" sales = SUM( [Sales] ) 2. Step: Calculate the cumulated value of "sales" sales **bleep** = CALCULATE( [Sales]; FILTER( ALLSELECTED([Date]); ISONORAFTER([Date]; MAX([Date]); DESC) ) ) 3. Step: Calculate the percentage difference between 1 and 2 Sales **bleep** MoM% = DIVIDE( [Sales] ; [Sales **bleep**] - [Sales] ; 0 )
Ok then may I ask you to mark your post as solution so others can find it more easily?
So you mean Month-to-Date?
Like this here?
If the post was helpful pls mark it as solution and share sume kudos 🙂
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
115 | |
74 | |
57 | |
47 | |
38 |
User | Count |
---|---|
167 | |
117 | |
61 | |
58 | |
46 |