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

A new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.

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
May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.