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.
I am trying to create a line chart that shows cumulative sales for both the month selected by a slicer and the previous month. I have built a measure for cumulative sales for the current month that works correctly, the measure is:
How can I get the prior month measure to give me a cumulative sum for each day, like the current month measure?
Solved! Go to Solution.
Hi @crobson29
You can use this measure for previous month
Previous Month = CALCULATE(SUM(VW_FACT_SALES_DOCUMENT_ITEM_DATA_USA[Weight (Gallons)]),DATEADD(DATESMTD('M_CALENDAR_BILLING'[Date]),-1,MONTH))
Best Regards,
Jing
If this post helps, please Accept it as Solution to help other members find it. Appreciate your Kudos!
This is exactly what I was going for, Thank you!
Hi @crobson29
You can use this measure for previous month
Previous Month = CALCULATE(SUM(VW_FACT_SALES_DOCUMENT_ITEM_DATA_USA[Weight (Gallons)]),DATEADD(DATESMTD('M_CALENDAR_BILLING'[Date]),-1,MONTH))
Best Regards,
Jing
If this post helps, please Accept it as Solution to help other members find it. Appreciate your Kudos!
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
143 | |
79 | |
63 | |
52 | |
47 |
User | Count |
---|---|
217 | |
89 | |
76 | |
66 | |
60 |