Forum Discussion
ajinkya1907
Helper II
8 years agoGroup BY related doubt
Hi, I am using Cricket related data for one of my report. I would like to find out total centuries scored by batsmans. I am using below function but not getting desired results. Please help with ...
- 8 years ago
Try this MEASURE
Centuries = VAR temp = FILTER ( SUMMARIZE ( 'deliveries', 'deliveries'[match_id], deliveries[batsman], "runs", SUM ( deliveries[batsman_runs] ) ), [runs] >= 100 ) RETURN COUNTROWS ( temp )
ajinkya1907
Helper II
8 years agoDear Zubair_Muhammad and v-qiuyu-msft, Could you please help with your expertise?
Zubair_Muhammad
Community Champion
8 years ago
Try this MEASURE
Centuries =
VAR temp =
FILTER (
SUMMARIZE (
'deliveries',
'deliveries'[match_id],
deliveries[batsman],
"runs", SUM ( deliveries[batsman_runs] )
),
[runs] >= 100
)
RETURN
COUNTROWS ( temp )- ajinkya19078 years ago
Helper II
Zubair_Muhammad - You are Awesome !!!
The solution worked absolutely fine. Thank you very much. This method will help me in many other calculations.
Thanks to v-qiuyu-msft for your suggestion. It helped too :-)