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 am trying to get a running 3 year total that then also sums for the quarter.
So what I want is something like this - Where I can calculate a running total, and then sum that total on a quarterly basis.
I found the below solution for creating a 3 year running total on a monthly basis, but that measure doesn't get summed for the quarter. The value displayed for the quarter is the exact same as the month. Any ideas why my running total won't sum? Thank you!
@Sarah_
Try This measure,
Thanks Thennarasu! I tried a modified version - I couldn't figure out how the [sortyearmonth] and [FY_Year] portions of the formula were working so I went with this -
@Sarah_ , You can get qtr value with help from date tbale and time intellignece , same for all month in qtr
Qtr Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESQTD(ENDOFQUARTER('Date'[Date])))
or
This Qtr=
var _max1 = today()
var _min = eomonth(_max1,-1* if( mod(Month(_max1),3) =0,3,mod(Month(_max1),3)))+1
var _max= eomonth(_min, 2)
return
if('Date'[Date]>= _min && 'Date'[Date] <= _max , "Latest Qtr" format([Date], "YYYY-QQ") )
I am so appreciative of your help! But I need to do more than QTD sales. I have a 3 year running total by month, and want the quarter to be the sum of the 3 months' running value. So if Oct running total value is 50, Nov has sales of 10 which makes a running total of 60, and Dec again has sales of 10 so the running total is 70, then I want the Q4 total to = 50+60+70. But I can't sum the running total. It just gives the last month total.
Hi,
Share some data to work with and show the expected result very clearly.
Hi Ashish,
I created an excel file with fake data to send, but I can't seem to upload it. Below is a new screenshot using the fake data, along with a description of what I see vs what I want to see.
Here is the formula I am using for the 3 year running total:
Upload the file to Google Drive and share the download link.
Hi,
In another tab of that Excel workbook, please show the expected result. The image you posted earlier is very small so I cannot understand what youw want.
Apologies for the delayed response - I just put a picture of the desired result in the second tab of the data sheet. Thank you!
Pasting the screenshot in another tab of the Excel workbook just does not help. How have you derivd the figures in column C of the PBI screenshot worksheet? Explain that.
In the screenshot I'm trying to show what I am getting vs what I want.
I am able to acheive a monthly 3-year running total using the following formula:
I am not interested in seing your formula - I'll write my own. To receive any further help from me, please answer the question that i have asked in my prevous message.
I'm really sorry, I thought I was answering your questions. I'm very grateful for the help. Could you maybe re-phrase the question as I clearly didn't understand. I thought you were asking me about data in the screenshot that appeared in Column C, which was from the formula I created. What should I be clarifying instead?
Please show which MS Excel formula you would have written to calculate the numbers in clumn C of the PBI screenshot worksheet. Show the formula in the cells of that column.
User | Count |
---|---|
117 | |
77 | |
58 | |
52 | |
46 |
User | Count |
---|---|
171 | |
117 | |
63 | |
57 | |
51 |