Forum Discussion
COUNT based on categorized criteria(priority basis)
i have edited the orignal post please check
Ok this is your formula for calculated column / measure
please mark as accepted solution
- mariaSam10142 years agoHelper I
this is counting every instant of occupier ID whereas my requirement is to count the occupier id only once in sequence of severity trend and severity level. please read my full original post sir I have a criteria based count not only count all instances.
I have already tried dictinct count, count, sumx with count (I need to have a lookup kind of thing which will look up (the nested criteria) or may be COUNTIF but i dont know how should i structure it- Gabry2 years agoSuper User
Well man if you just need to count the number of occupier id for tenant, risk level and security this is the formula:
Test =CALCULATE(DISTINCTCOUNT('Table'[OccupierId]), ALLEXCEPT('Table', 'Table'[Tenant], 'Table'[Severity Trend], 'Table'[RISK Severity Level]))as I can see it works perfectly.
ExampleTenant: XYZ
Risk Level: Medium
Trend: Deteriorating
NUMBER OF OCCUPIER 3
- mariaSam10142 years agoHelper I
have you seen my required answer table in my orignal post? If you can generate that fro your calculation I would appreciate that
You are giving me simple count each instance, this is not required at all. Thankyou for this help but exactly this is wrong with what actually is required that its counting each instance correctly. Not required.