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 : ...
Anonymous
3 years agoNot applicable
I do not want to go with that approach since I will have 40 more comma-separated columns with different values.
So I need a calculated measure.
Thank You!
amitchandak Greg_Deckler Jihwan_Kim Please help
Greg_Deckler
3 years agoCommunity Champion
Anonymous 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
__Result- Anonymous3 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.