Forum Discussion

freakinaditya's avatar
freakinaditya
Icon for Helper II rankHelper II
4 years ago
Solved

Dynamically show data from current selection in slicer till max year in data.

Hello Community!   I have a business requirement where I have to show data as follows-             Suppose I have year slicer, when I select a year from the slicer then it should show d...
  • Anonymous's avatar
    Anonymous
    3 years ago

    HI, I have a solution for this 

    we can create a new table using summarize function like this 

    Year =
    GENERATE (
        SUMMARIZESummarySummary[Year] ),
        VAR StartYear = Summary[Year]
        RETURN
            ADDCOLUMNS (
                GENERATESERIES ( StartYear2023 ),
                "s_year"StartYear,
                "e_year"[Value]
            )
    )

     

    and than we can use year in the slicer and put year range in table and respective so that we can get the desired result 

     

    PFA 

     

     

    Best Regards,

    Jatin Joshi

     

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.