Forum Discussion
CharlotteCity12
4 years agoMicrosoft Employee
Group and Count by Problem
I need to group by 'garage id' and 'block id' then list with count the Problem Sub Code.. see sample data with results below:
- 4 years ago
Hi CharlotteCity12 ,
Create a measure like below:-
Measure = VAR _Table = SUMMARIZE( 'Table', [Garage id], 'Table'[Blockid], 'Table'[problem_subcode], "Count",COUNTROWS('Table') ) RETURN CONCATENATEX(_Table,[problem_subcode] & " " & "("&[Count]&")",", ")Output:-
Thanks,
Samarth
Samarth_18
4 years agoCommunity Champion
Hi CharlotteCity12 ,
Create a measure like below:-
Measure =
VAR _Table =
SUMMARIZE(
'Table',
[Garage id],
'Table'[Blockid],
'Table'[problem_subcode],
"Count",COUNTROWS('Table')
)
RETURN
CONCATENATEX(_Table,[problem_subcode] & " " & "("&[Count]&")",", ")
Output:-
Thanks,
Samarth