CopperKnife
New Member
- Joined
- May 26, 2015
- Messages
- 14
Hi all,
I have a Date table and Fact table.
Cols in Date table:
Date
Month
Qtr
Year
MonthName
QtrName
YearName
Cols in Fact table:
Date
Product
Country
Region
Qty
In DAX, I need to write an expression for calculating the following:
(JanPrevYear + FebPrevYear / JanCurrYear+ FebCurrYear)-1
in the next coloumn
(JanPrevYear + FebPrevYear +MarPrevYear / JanCurrYear+ FebCurrYear+MarCurrYear)-1
in the next coloumn
(JanPrevYear + FebPrevYear +MarPrevYear+AprPrevYear / JanCurrYear+ FebCurrYear+MarCurrYear+AprCurrYear)-1
it goes on increasing the no of months when it goes forward, I am wondering what DAX function should I use and How??
I can use neither the plain MTD/YTD nor SAMEPERIODLASTYEAR here, because the no of months are going to be increased as it goes forward.
Please help me.
CopperKnife
I have a Date table and Fact table.
Cols in Date table:
Date
Month
Qtr
Year
MonthName
QtrName
YearName
Cols in Fact table:
Date
Product
Country
Region
Qty
In DAX, I need to write an expression for calculating the following:
(JanPrevYear + FebPrevYear / JanCurrYear+ FebCurrYear)-1
in the next coloumn
(JanPrevYear + FebPrevYear +MarPrevYear / JanCurrYear+ FebCurrYear+MarCurrYear)-1
in the next coloumn
(JanPrevYear + FebPrevYear +MarPrevYear+AprPrevYear / JanCurrYear+ FebCurrYear+MarCurrYear+AprCurrYear)-1
it goes on increasing the no of months when it goes forward, I am wondering what DAX function should I use and How??
I can use neither the plain MTD/YTD nor SAMEPERIODLASTYEAR here, because the no of months are going to be increased as it goes forward.
Please help me.
CopperKnife