March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Hi,
I currently have a multi-row card that would require me to calculate the % Var of Volume vs Past Month. However it is currently comparing with the absolute value (total value from last month) to the MTD value of this month. If I currently have 9 selling days for the month, how can I modify measure in such a way that i would retrieve only the first 9 selling days of the month last month? how about last year same month? (ex. current month is sept, retrieve sept from last year first 9 selling days)
Here are the current measures that I have so far
@Anonymous Yes in my example I just showed made that as fixed data but it could be any date.
Did you mark your date table as a date table?
Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!
Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo
If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤
Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.
Hi Parry,
I now have this version of my dax.
@Anonymous check this video on my YT channel which addresses the same exact question: Learn how to compare MTD sales as of date with same number of days last year - Part 7 - YouTube
Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!
Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo
If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤
Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.
Hi Parry,
Thanks for the suggestion. However, there's a part which confuses me.
In the first line, you put here January 10, 2022, so it made the formula static to compute all the way to the 10th for every month. How should it be replaced if i want it to compute as the days go by?
I do have an idea of how the logic is supposed to work for the supposed dax for this, however i cannot translate to DAX Formula as easily.
1. Compute MTD Days current month
2. Identify start of month last month, then calculate sum volume for date start + MTD selling days -1
I do aplogize if I wasnt able to fully understand from the video and hoping you could still help with this one 🙂
@parry2k Hi Parry,
I tried using the exact formula however, the results return blanks. What could be the cause?
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
129 | |
90 | |
75 | |
58 | |
53 |
User | Count |
---|---|
200 | |
104 | |
101 | |
67 | |
55 |