Forum Discussion

AlanP514's avatar
AlanP514
Post Patron
2 years ago

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

  • CoreyP's avatar
    CoreyP
    Solution 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.

    • AlanP514's avatar
      AlanP514
      Post Patron

      Hi CoreyP 
      Thanks for your reply,
      i am attaching Excel sheet containing the Logic and the logic table which i created in power bi and the data model , please have a look 
      Appreciate help on this to achive the logic