Forum Discussion

lavankumar1989a's avatar
1 year ago
Solved

Enable conditional drillthrough

Hi Expert,   Hope you are doing great! i need you guidence to achive my requirement in PowerBI, i have bunch of slicers in my first page and a table visual and if the user selected a slicer called ...
  • Anonymous's avatar
    Anonymous
    1 year ago

    Hi, lavankumar1989a 

    Thanks for the reply from Uzi2019, anmolmalviya05 and 123abc. You can put the measure to Filters pane to enable filtering.

    Flag = 
    VAR _slicer =
        SELECTEDVALUE ( Slicer[Year] )
    VAR _startYear = _slicer - 1
    VAR _tableYear =
        SELECTEDVALUE ( 'Table'[Year] )
    VAR _result =
        IF (
            ISFILTERED ( Slicer[Year] ),
            IF ( _tableYear >= _startYear && _tableYear <= _slicer, 1 ),
            1
        )
    RETURN
        _result
    


    No relationship between the two tables.



    Best Regards,
    Yang

    Community Support Team

     

    If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly.
    If I misunderstand your needs or you still have problems on it, please feel free to let us know.
    Thanks a lot!

    How to get your questions answered quickly --  How to provide sample data in the Power BI Forum