Forum Discussion
Anonymous
3 years agoNot applicable
Get count values for comma separated
Hi, I have a table below. Tenant ID will always be unique. I need a measure for Incident Type, Priority, and Incident Root cause to get the result below. Table : Result expected : ...
Greg_Deckler
Community Champion
3 years agoAnonymous Assuming you have an Incidents type table somewhere you could do this:
Measure =
VAR __Type = MAX('Types'[Type])
VAR __Table =
ADDCOLUMNS(
'Table',
"__Found",SEARCH(__Type,[Incident Type],,-1)
)
VAR __Result = COUNTROWS(FILTER(__Table, [__Found] > -1))
RETURN
__ResultAnonymous
3 years agoNot applicable
Hi Greg_Deckler
Thanks for the reply. I will not have an Incident Type table. My issue is there are more than 40 such columns, so having 40 tables will lower the performance.
Any different approach?
Note : using MongoDb as Datasource which is very very slow.