Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
myti
Helper II
Helper II

getting value of Page Level Filters with Dax code

Dear Experts,

 

Is it possible to get value of Page Level Filters with Dax code to  create data model?  

For example in the attcahed image in the Dax formulah: Channel[ChnnelName]=get value from page level filter. Page level filter is  a  table with name of stores.

Thank you-Myti

 

2017-02-23.png

1 ACCEPTED SOLUTION
Datatouille
Solution Sage
Solution Sage

Hi @myti

 

You can retrieve the value of a slicer / page level filter / report level filter with the following measure:

 

Measure = If ( HasOneValue(Table[SlicerCol]) , Values (Table[SlicerCol]) )

You can then pass this value in a variable for a filter condition or apply if statements / Switch

But it only works if the user selected a single value, otherwise it returns blank.

 

In your particular example, you can try to pass the whole Channel table as a filter argument.

Store Sales = Calculate ( [Total Sales] , Channel )

Channel table will be evaluated in the current filter context and thus takes into account the filter(s) applied by the user.

 

 

View solution in original post

1 REPLY 1
Datatouille
Solution Sage
Solution Sage

Hi @myti

 

You can retrieve the value of a slicer / page level filter / report level filter with the following measure:

 

Measure = If ( HasOneValue(Table[SlicerCol]) , Values (Table[SlicerCol]) )

You can then pass this value in a variable for a filter condition or apply if statements / Switch

But it only works if the user selected a single value, otherwise it returns blank.

 

In your particular example, you can try to pass the whole Channel table as a filter argument.

Store Sales = Calculate ( [Total Sales] , Channel )

Channel table will be evaluated in the current filter context and thus takes into account the filter(s) applied by the user.

 

 

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors