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.
Hi Friends,
I have data values in my data table from dates starting from OCT 14- Latest date. I am looking to create a measure to calculate Running totals for the values starting from Oct 15 - Latest date (excluding the year 2014) with out using any date slicers. How would I be able to do that?
Date column structure:
Kindly, help!!!!
Thank you.
Solved! Go to Solution.
You can try this one:
I'm assuming that the column [UsageDate] is in your FACT table, and relates to the [Date] column in your CALENDAR table. Please note that time intelligence like this will require a calendar table. There is lots of good documentation on building a good calendar table. Try looking here, Matt Alington has made a nice table and posted it on PowerPivotPro.
[Running Total Measure] := CALCULATE ( [Base Measure], //likely summing up a certain column FILTER ( ALL ( CalendarTable ), CalendarTable[Date] >= DATE ( 2015, 1, 1 ) //Currently hardcoded to 1/1/2015, but this could be made dynamic later && CalendarTable[Date] <= MAX ( CalendarTable[Date] ) ) )
Also look at PowerPivotPro's articles on the Greatest Formula In The World...GFITW. This measure is based on that pattern.
Cheers,
~ Chris H
You can try this one:
I'm assuming that the column [UsageDate] is in your FACT table, and relates to the [Date] column in your CALENDAR table. Please note that time intelligence like this will require a calendar table. There is lots of good documentation on building a good calendar table. Try looking here, Matt Alington has made a nice table and posted it on PowerPivotPro.
[Running Total Measure] := CALCULATE ( [Base Measure], //likely summing up a certain column FILTER ( ALL ( CalendarTable ), CalendarTable[Date] >= DATE ( 2015, 1, 1 ) //Currently hardcoded to 1/1/2015, but this could be made dynamic later && CalendarTable[Date] <= MAX ( CalendarTable[Date] ) ) )
Also look at PowerPivotPro's articles on the Greatest Formula In The World...GFITW. This measure is based on that pattern.
Cheers,
~ Chris H
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 |
---|---|
109 | |
98 | |
77 | |
66 | |
54 |
User | Count |
---|---|
144 | |
104 | |
100 | |
86 | |
64 |