Forum Discussion
PBIfanatic
Helper V
6 years agoFILTER used for age classification
Hi, I am trying to get the below logic to work. The idea is to create an age group for the employees like 30-40, 40-50 etc. I created an isolated table - Age Group with the groups I need. N...
- 6 years ago
Thanks a lot, it worked!!
But I had to make a change, the storage mode was changed to import.
Ashish_Mathur
Super User
6 years agoHi,
This calculated column formula in the Sales table should work
Age Group = CALCULATE(VALUES(AgeGroups[Age Group]),FILTER(AgeGroups,EARLIER(Sales[CustomerAge])>=AgeGroups[Min]&&EARLIER(Sales[CustomerAge])<AgeGroups[Max]))
If it does not work, then share the link from where i can download your PBI file.
Hope this helps.
PBIfanatic
Helper V
6 years ago
Thanks a lot, it worked!!
But I had to make a change, the storage mode was changed to import.
- Ashish_Mathur6 years ago
Super User
You are welcome.