Forum Discussion
Anonymous
5 years agoNot applicable
Subsetting a table based on other table
Hi, newbie here. I've been trying and researching how to do this all weekend, but nothing worked for me yet. Any help would be appreciated. Basically, I have two tables: The first one is called "...
- Anonymous5 years ago
I did it!! I just used the FILTER function like "NewTable = FILTER('competition', 'competition'[id_competition] = RELATED('winners'[id_competition]) && 'competition'[id_competitor] = RELATED('winners'[id_competitor]))"
Thanks again for the help!
PaulDBrown
5 years agoCommunity Champion
Anonymous
You can create a virtual relationship using TREATAS (see my edited post above) to filter unrelated fields. Can you show the model view of the relevant tables (both dimension and fact tables)?
Anonymous
5 years agoNot applicable
I did it!! I just used the FILTER function like "NewTable = FILTER('competition', 'competition'[id_competition] = RELATED('winners'[id_competition]) && 'competition'[id_competitor] = RELATED('winners'[id_competitor]))"
Thanks again for the help!