Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
I need to calculate MTD/QTD etc. sales based on a custom calendar. I already got the ranges for the custom calendar.
My approach to calculate MTD - get the current month from the custom calendar by using a measure. Then sum the sales based on this month. Here is my measure:
(Curr Month Measure) =
VAR current_month_tab = FILTER('Calendar 445', [Date] = TODAY())
return CALCULATE(distinct('Calendar 445'[MonthNameShort]), current_month_tab)
This does seem to work but not sure the most efficient, Comments appreciated.
@WolfBiber Does the TotalMTD etc function work for custom calendar? For instance, Nov 2017 actually ranges from Oct 28- Nov 25 in the current year. I need the sum of sales for the period, not sure how it will work out.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
112 | |
100 | |
76 | |
74 | |
49 |
User | Count |
---|---|
145 | |
108 | |
107 | |
89 | |
61 |