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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
LinhNguyen
Helper II
Helper II

Measure value based on selection

Hi everyone,

 

I'm trying to create a dynamic filter value based on slicer selection. 

 

In table 'Bonus Selection', I only have 1 column with "Yes" and "No" as value. I created a single selection slicer with that column.

Include bonus.PNG

Then, in another table, I wanted to create a measure based on the selection on the previous table. I have tried:

Cost Element Filter =
VAR _includeBonus = SELECTEDVALUE('Bonus Selection'[Include Bonus ?])
RETURN IF(_includeBonus = "No", "610030", "000000")
 bonus filter.PNG
It didn't show any error but there was not any value returned. Did I do something wrong?
4 REPLIES 4
mauriciosotero
Resolver III
Resolver III

Can you share a picture of the diagram of your model?

mauriciosotero
Resolver III
Resolver III

Hi,

 

Give more details what you are trying to do.

 

Why are you creating this measure? Isn't pososible to create a column in the 'Bonus Selection' with this values?

 

If this helps, I apreciate you give a kudo and mark as the solution. Thanks

I want to get that measure so that I can do a filter based on the viewer's choice. When the users choose "No", I want to filter out one particular cost element ID, which is the value returned in the formula earlier. I can place a filter on the whole page, lock and hide it so that no one can see.

With that said, creating the same measure in the Bonus selection table might help too. However it's a blank value even when I create that measure in the Bonus Selection table.

 

cust filter.PNG

I tried using calculated column as well but that didn't work either

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Kudoed Authors