Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi all,
I'm working with a fairly large survey data set and am just struggling slightly with finding a way to categorize respondents into certain groups depending on their response choice.
The response options include ADHD, OCD, VisualImpairment, MotorImpairment, Dysgraphia, and Dyslexia.
The respondents might have duplicate rows, so I would like to categorize any respondent who chose either ADHD or OCD into Group 1, and respondents who chose anything else into Group 2 (using DAX)
I know I need to use the Filter function, but not quite sure how to nest it.
I've attached a workbook which will hopefully provide further clarity.
Any help/advice is greatly appreciated!
Currently using Office 365 ProPlus
Darko
Solved! Go to Solution.
You can use a column like
Column = IF ( CALCULATE ( DISTINCTCOUNT ( Table1[DxGrouping] ), ALLEXCEPT ( Table1, Table1[ID] ), Table1[DxGrouping] IN { "ADHD", "OCD" } ), "Group 1 & 2", "Group 2" )
Hi,
I am assuking that Column1 shows your expected result. What does Group 1 & Group 2 mean? Why is Student 1 falling under Group 1 & Group 2?
You can use a column like
Column = IF ( CALCULATE ( DISTINCTCOUNT ( Table1[DxGrouping] ), ALLEXCEPT ( Table1, Table1[ID] ), Table1[DxGrouping] IN { "ADHD", "OCD" } ), "Group 1 & 2", "Group 2" )
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
112 | |
100 | |
76 | |
74 | |
49 |
User | Count |
---|---|
146 | |
108 | |
106 | |
90 | |
62 |