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

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.

Reply
tjems
Regular Visitor

PowerBI dashboard visual update when linked to time period filter (e.g year)

Hi, I have pinned a visual from a report that shows sales per month comparing this and last year. Currently the "Year" filter is explicit on "2017" and 2016".

 

My question is: When this year ends, I would like to the chart to automatically show "2018" vs "2017" without having to delete the dashboard visual and pin a new with this update. Even though this is not a big problem for just one dashboard visual, it becomes time consuming with increasing number of dashboards with the same visual (e.g. duplicate dashboards for Product A, Product B etc)

 

I have though about using a "IsInCurrentYear" and "IsInPreviousYear" calculated field to solve this. Any inputs on how to solve this?

 

Thanks! MA

2 REPLIES 2
tjems
Regular Visitor

Hi, I have pinned a visual from a report that shows sales per month comparing this and last year. Currently the "Year" filter is explicit on "2017" and 2016".

 

My question is: When this year ends, I would like to the chart to automatically show "2018" vs "2017" without having to delete the dashboard visual and pin a new with this update. Even though this is not a big problem for just one dashboard visual, it becomes time consuming with increasing number of dashboards with the same visual (e.g. duplicate dashboards for Product A, Product B etc)

 

I have though about using a "IsInCurrentYear" and "IsInPreviousYear" calculated field to solve this. Any inputs on how to solve this? 

Thanks!

MA

@tjems

 

Try a measure

Measure = YEAR(TODAY())&" VS "&YEAR(TODAY())-1

Capture.PNG

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.