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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
JustinDoh1
Post Prodigy
Post Prodigy

How to pass filter value into a variable?

I have using measure that has all static value for filter values (in this case: FacilityCode).

Bottom is just one example of a measure.

 

JustinDoh1_0-1709078665584.png

 

Now, I came across the point, this approach is not possible because I need to use Filter/Slicer to put the value here using Variable possibly (yellow area) - dynamic approach.

 

How do I go about doing it?

 

Do I create another measure for the value of Filter and plug here?

 

 

 

1 ACCEPTED SOLUTION

remove the curly brackets

View solution in original post

4 REPLIES 4
vicky_
Super User
Super User

replace the yellow part with VALUES(SlicerTable[SlicerField])

@vicky_  Thank you so much for your help.

I am getting this error:

JustinDoh1_2-1709166456457.png

I was modifying code here:

JustinDoh1_3-1709166524440.png

 

 

remove the curly brackets

lbendlin
Super User
Super User

read about VALUES() and about FILTERS()

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.