Forum Discussion

Mahbf's avatar
Mahbf
Regular Visitor
7 years ago

Reference a page level filter in a measure

Is there any way to reference a page level filter inside of a measure. The page level filter is set to fiscal year 2019 and I want to write a measure for sales in the fiscal year that is filtered (2019 for now) less sales in the fiscal year that is filtered minus 1 (to get 2018). Then I could change filter to 2018 to see 2018 vs 2017 and so on for any fiscal year.

2 Replies

  • v-piga-msft's avatar
    v-piga-msft
    Icon for Resident Rockstar rankResident Rockstar

    Hi Mahbf,



    Based on my test, I'm afraid that we are not able to reference the page level selected value in a DAX expression currently.

     

    You could submit your new idea in Power BI ideas Forum and add your comments there to improve Power BI and make this feature coming sooner.

     

    We could reference the selected value in a slicer, you may could try with slicer as a workaround.

     

    Best  Regards,

    Cherry

  • Anonymous's avatar
    Anonymous
    Not applicable

    You can use ALLSELECTED instead off ALL on Filtre to have report or page filter applying to measure.