Forum Discussion
Thisaatty
3 years agoNew Member
Filter a table based on a DAX variable value
Hi,
I want to filter a table based on variable value. First I have taken the variable into a measure as shown below
Selected ID = SELECTEDVALUE(study[Studyid_commonname])
Then I have added a new column with (1,0) to the table (study_site) that I want to filter. (so I can filter based on 1,0)
ID Check = IF([Selected ID]=study_site[Studyid_commonname],1,0)
But it gives 1 to all rows. Is there any other way to do this?