Forum Discussion
Area Chart
vanessa so what is your question here ?
- vanessa10 years agoPost Patron
So can I achieve this?
The image i uploaded is of the Retail Analysis Sample dashboard.
I have just 1 column for date. And I want to display 2 areas: 1 for current year and 1 for the previous year.
Is it possible ?
- ankitpatira10 years agoCommunity Champion
vanessa You certainly can do that. Go to query editor in power bi desktop, select your date column right click and duplicate. Then select duplicated column, under Transform tab select Date dropdown, Year and Year which will extract out year out of date. Then simply use extracted year column under Legend section of Area chart along with Category and Axis values.
- vanessa10 years agoPost Patron
I want the current year to be selected dynamically using YEAR(today()) and comparing it to the year from the date field. the aprroach you mentioned will be like a static selection. won't it?