Forum Discussion
Distinct Count only when Count over a number
- 4 years ago
SebastianCostas , try
Assignee cnt = count(ITSM_Incidents[Assignee])
Incidents by Analysts =
VAR Last = max(CreatedDate[Date].[Date])
VAR First = min(CreatedDate[Date].[Date])
VAR QIncidents = CALCULATE(count(ITSM_Incidents[Key]), ITSM_Incidents[Createdwithouthour] >= First , ITSM_Incidents[Createdwithouthour] < Last)
VAR QAnalistas = Countx(FILTER(values(ITSM_Incidents[ITSM_Incidents[Assignee]]), [Assignee cnt ] >100) , ITSM_Incidents[Assignee]) - 4 years ago
I did an small change to what you sent me and is working perfctly
Incidents by Analysts =VAR Last = max(CreatedDate[Date].[Date])VAR First = min(CreatedDate[Date].[Date])VAR QIncidents = CALCULATE(count(ITSM_Incidents[Key]), ITSM_Incidents[Createdwithouthour] >= First , ITSM_Incidents[Createdwithouthour] < Last)VAR QAnalistas = countx(filter(VALUES(ITSM_Incidents[Assignee]),[Assigne cnt]>100),ITSM_Incidents[Assignee])return QIncidents / QAnalistas
SebastianCostas , try
Assignee cnt = count(ITSM_Incidents[Assignee])
Incidents by Analysts =
VAR Last = max(CreatedDate[Date].[Date])
VAR First = min(CreatedDate[Date].[Date])
VAR QIncidents = CALCULATE(count(ITSM_Incidents[Key]), ITSM_Incidents[Createdwithouthour] >= First , ITSM_Incidents[Createdwithouthour] < Last)
VAR QAnalistas = Countx(FILTER(values(ITSM_Incidents[ITSM_Incidents[Assignee]]), [Assignee cnt ] >100) , ITSM_Incidents[Assignee])
Thank you very much, but i'm having an error with the last var: