Forum Discussion
s45kougo
Helper I
6 years agoFiltering within a VALUES function based on another field
Hi all - hoping someone can help me with this (my first plea for help!) I'll give an anonymised example of what I need to do - the real version is obviously a bit more complicated! I have a tabl...
- 6 years ago
Another approach is to use CALCULATETABLE(VALUES(Table[Fruit]), Table[Colour] = "green").
If this works for you, please mark it as the solution. Kudos are appreciated too. Please let me know if not.
Regards,
Pat
mahoneypat
Microsoft Employee
6 years agoAnother approach is to use CALCULATETABLE(VALUES(Table[Fruit]), Table[Colour] = "green").
If this works for you, please mark it as the solution. Kudos are appreciated too. Please let me know if not.
Regards,
Pat
abeldiazcastano
1 year agoFrequent Visitor
This answer is great for me too, thanks! I am calculating Average Weekly Sales per year and I couldn't manage to filter my column yearweek (containing Y2021) from the VAR that had VALUES function 🙂