Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
Hi
I need support in converting my data which consist of months and year e.g. as below
01 2017
02 2017
03 2017
04 2017 & so far and so good &
01 2018
02 2018
03 2018
04 2018 in same way
the support what i need is to convert 2017 as Last year (LY) & 2018 as current year (CY) in order to compare month 1 CY vs LY.
Appreciate your feedback
regards
Solved! Go to Solution.
Not 100% on what you are going for here but perhaps this:
Column = IF(RIGHT([Column1],4)="2017","LY","CY")
Hi @Arif270182,
Please new measures:
CY = CALCULATE(SUM(table4[Sales]),FILTER(table4,table4[Year]=YEAR(TODAY()))) LY = CALCULATE(SUM(table4[Sales]),FILTER(table4,table4[Year]=YEAR(TODAY())-1))
Use a table visual to display data.
Best regards,
Yuliana Gu
Hi @Arif270182,
Please new measures:
CY = CALCULATE(SUM(table4[Sales]),FILTER(table4,table4[Year]=YEAR(TODAY()))) LY = CALCULATE(SUM(table4[Sales]),FILTER(table4,table4[Year]=YEAR(TODAY())-1))
Use a table visual to display data.
Best regards,
Yuliana Gu
Not 100% on what you are going for here but perhaps this:
Column = IF(RIGHT([Column1],4)="2017","LY","CY")
Hi
thanks for below update it worked but now i have another challange in arranging month from Jan to Dec, I have already arranged table month column
how can i fix this sequence
User | Count |
---|---|
107 | |
89 | |
81 | |
76 | |
73 |
User | Count |
---|---|
112 | |
104 | |
96 | |
74 | |
66 |