Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Nivedita
Regular Visitor

Plotting graph.

Hello,

 

So, below is a graph, where I'm plotting the ARR for every month of a particular year. I put the years in a slicer. When I don't select any of the options in the slicer, the graph adds up all the data from January, February, march..and so on of each year and plots them. How do I show the latest year's data when nothing is selected?

 

Nivedita_0-1614068863711.png

 

Nivedita_1-1614069045898.pngNivedita_2-1614069064443.png

 

Thanks in advance.

1 REPLY 1
amitchandak
Super User
Super User

@Nivedita , You have create a column like this in you date/year table and mark that as selected

 

 

Year Type = Switch( True(),
year([Date])= year(Today()),"This Year" ,
Format([Date],"YYYY")
)

 

or

 

Year Type = Switch( True(),
([Year])= year(Today()),"This Year" ,
[Year]
)

 

refer : https://www.youtube.com/watch?v=hfn05preQYA

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors