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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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

Helpful resources

Announcements
PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.