Forum Discussion
kjartank
Helper II
9 years agoUsing filter on UNION
Hi. I have been using the "UNION" function to get my charts to be more manageable and am in need of a filter on these tables. The code I've been using looks like this. Satisfaction Score = UNION...
- 9 years ago
You would use FILTER in your first parameter. So,
SELECTCOLUMNS (FILTER(Table1,[Period] = MAX([Period])); "Attribute";...
Something along those lines. Would need sample data to get specfic.
You might also want to create a variable where you filter your table and return it and then use that variable in place of Table1 in your SELECTCOLUMNS. Would be more efficient that way.
Greg_Deckler
Community Champion
9 years agoYou would use FILTER in your first parameter. So,
SELECTCOLUMNS (FILTER(Table1,[Period] = MAX([Period])); "Attribute";...
Something along those lines. Would need sample data to get specfic.
You might also want to create a variable where you filter your table and return it and then use that variable in place of Table1 in your SELECTCOLUMNS. Would be more efficient that way.
- bsas8 years ago
Post Patron
Hi Greg_Deckler,
How I can create such variable (filtered table based on slicer) and then use it selectcolumns?