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
Saipreethi
Helper I
Helper I

Automating Slicer based on data

Hi Everyone,

 

I need automating slicer for year where selection need to change based on data on the page. Can anyone give logic for this. as per the requirement below slicer need to select year based on data. This year slicer is calnder table where min = year(today())-2 and Max= Year(Today()). Next year slicer will have 2024 but we will need to select it based on entire page. 

Saipreethi_0-1681198245163.png

 

5 REPLIES 5
Wilson_
Solution Sage
Solution Sage

Hello,

 

One way I've found to do this is to move whichever field is the many in the one-to-many relationship into the slicer as well, under 'Calendar'[Year]. Hopefully that makes sense and is what you're looking for.


----------------------------------
If this post helps, please consider accepting it as the solution to help other members find it quickly. Also, don't forget to hit that thumbs up and subscribe! (Oh, uh, wrong platform?)

I want to auto select the year based on table data

What does that mean?

 

Any feedback at all on my proposed solution (or more concretely spelling out what you're looking for) would be helpful.

We will go to slicer to select year manually to see data for that year. If we get new year in the slicer, it should automatically select year in slicer not manually by us.

Let me try this a different way.

 

It's 2023 right now. What years should show in your data right now?

It'll be 2024 next year. What years should show in your data next year?

 

(I'm trying to get you to explain what you're trying to accomplish in English, not in Power BI speak.)

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.

Top Solution Authors