Forum Discussion
achristopherson
6 years agoFrequent Visitor
Group age by bracket direct query
I have a dataset with names and ages. I need to show three age groups: Under 18, 18-64, 65 and above. Can someone give me some pointers for setting this up? It seems like it should be relatively simp...
- 6 years ago
Hi achristopherson ,
You can create a column:
Column = SWITCH( TRUE(), FamilyMember[Age] < 18, "1) Under 18", FamilyMember[Age] >= 18 && FamilyMember[Age] < 65, "2)18 -65", "3) Over 65" )Best regards,
Lionel ChenIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Mariusz
6 years agoCommunity Champion
Try these two patterns.
https://www.daxpatterns.com/dynamic-segmentation/
https://www.daxpatterns.com/static-segmentation/
Best Regards,
Mariusz
If this post helps, then please consider Accepting it as the solution.
Please feel free to connect with me.
LinkedIn
Mariusz
If this post helps, then please consider Accepting it as the solution.
Please feel free to connect with me.