Forum Discussion
Area Chart
Anonymous so what is your question here ?
- Anonymous10 years agoNot applicable
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 ago
Community Champion
Anonymous 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.
- Anonymous10 years agoNot applicable
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?