Forum Discussion

Saipreethi's avatar
Saipreethi
Helper I
3 years ago

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. 

 

5 Replies

  • Wilson_'s avatar
    Wilson_
    Memorable Member

    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?)

      • Wilson_'s avatar
        Wilson_
        Memorable Member

        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.