Forum Discussion
Dax for conditional grouping
I am trying to create conditional group or bin based on the measure
I need to segragte all customer into three
Hyper active
Super Active
Active
I Have created count of user who has logged in each month(Below is that measure)
Logins = Sumx(Facttracking, Fact tracking[Desktop count] + Fact tracking[Mobile count]
so i have added user in the row section of the pivot , month in the section of column name and login in the measure value
so according to the sum of all values aganist each month
if the total sum of the count value >= 5 i need to segregrate those customer into hyper active
if the total sum of the count value = 3,4 i need to segregrate those customer into Super active
if the total sum of the count value = 1,2 i need to segregrate those customer into active
one more condition is these above condition should work if login time is greter or lesser for entire month
not based on each month
Appreatiate help on this to create dax
2 Replies
- CoreyPSolution Sage
Can you please provide a sample of your raw data and a screenshot of the model. If there's sensitive data, feel free to just create mock data as example.