Forum Discussion
Calculate average quarterly wise without considering current year data
- 8 years ago
Thank for the reply Anonymous.
I was able to solve the problem by creating a variable
Forecast = IF('Cash Flow'[FY_DC]='Cash Flow'[CurrentYear],0,'Cash Flow'[Average]).
My requirment was to show Average Quarterly wise across the years. For each quarter I had to show the forecast with Average() we will get the average for entire dataset in the visualization.
syedsiraj10,
Do you get expected result when you create another measure using DAX below. You may need to create year column in the Query1 table.
Measurewithoutcurrentyear = CALCULATE([Average For Quarters], FILTER(Query1,Query1[Year]<YEAR(TODAY())))
There is also an example for your reference.
Measurewithoutcurrentyear = CALCULATE(SUM(Sheet5[SalesAmount]), FILTER(Sheet5,Sheet5[Year]<YEAR(TODAY())))
Regards,
Lydia
Thank for the reply Anonymous.
I was able to solve the problem by creating a variable
Forecast = IF('Cash Flow'[FY_DC]='Cash Flow'[CurrentYear],0,'Cash Flow'[Average]).
My requirment was to show Average Quarterly wise across the years. For each quarter I had to show the forecast with Average() we will get the average for entire dataset in the visualization.