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! Learn more

Reply
Anonymous
Not applicable

Filter based on selected value

 I need to be able to filter a table based on a selected value measure from another table.  I have tried to do a if statement but it cant format the measure as text.

 

Column 2 = if([Selected Role]='Target Data'[Leadership type],"yes","No")

 

Here is the measure

5-1-2018 3-51-20 PM.png

 

5-1-2018 3-49-59 PM.png

3 REPLIES 3
v-juanli-msft
Community Support
Community Support

Hi

I use your provided information and formula and work out this result.

 

3.png

 

I don’t understand what do you mean by saying “I have tried to do a if statement but it cant format the measure as text”

 

Best Regards

Maggie

Anonymous
Not applicable

Thanks for the response @v-juanli-msft.

 

It should only say yes if they match.

It just isn't working correctly.5-2-2018 9-20-29 AM.png

Hi

the result of measure "Selected Role" is right but "Column2" is not correct, the "yes" in row 2 should be "no", is my understanding right?

 

Best Regards

Maggie

Helpful resources

Announcements
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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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