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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Do5779
Helper II
Helper II

Selectedvalue - conditional formatting - slicer value

Hi Experts,

I hope this is the right place to get some help for my issue:

 

I would like to do something like this: 
DAX Fridays! #212: VALUES vs SELECTEDVALUE to conditional format a line chart - YouTube


And for a Test I did it how it was explained and it works:

 

Test4 = 

var selectvalue = VALUEs(Abfrage1[id])

return
If(selectedvalue(Tabelle[ID]) in selectvalue, "y" , "n")

 

Do5779_0-1663825681752.png

 


but for the real data with the same code:

 

Test4 = 

var selectvalue = VALUEs(Abfrage1[Index.1])

return
If(SELECTEDVALUE(Member[Index.1]) in selectvalue, "y" , "n")

 


I get only "y" as the results...





Do5779_1-1663825681760.png

 

Does someone has a tip for me😢?

1 ACCEPTED SOLUTION
tamerj1
Super User
Super User

Hi @Do5779 
The screenshot is not clear. Would you please share a larger one?

However, please make sure 'Abfrage1' table is the slicer table and 'Member' is the one used in the table visual. If the opposite is true then you need to interchange the table names in the formula.

View solution in original post

2 REPLIES 2
Do5779
Helper II
Helper II

there was a bad mistake of mine . Thanks a lot for your answer @tamerj1 !

tamerj1
Super User
Super User

Hi @Do5779 
The screenshot is not clear. Would you please share a larger one?

However, please make sure 'Abfrage1' table is the slicer table and 'Member' is the one used in the table visual. If the opposite is true then you need to interchange the table names in the formula.

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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

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.