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
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
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 |
---|---|
113 | |
100 | |
78 | |
76 | |
52 |
User | Count |
---|---|
144 | |
109 | |
108 | |
88 | |
61 |