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 agoZubair_Muhammad I have one doubt, What if I need to calculate max runs scored by any batsman using similar calculation? In other words, How to use specific column of temp table. e.g [runs] in this case. applying Max[runs] should solve the problem right?
Please note -
1) I know the answer is achievable by some other DAX formula (other than summarize or group by) but I am curious about modiying given formula, It will help me to calculate few other scenarios
2) With above formula if I simply sum the runs, It may add 2 centuries as well (If any player scores century in 2 matches, It will sum that up & show as max value)
ajinkya1907
Helper II
8 years agoDear Zubair_Muhammad, Did you get chance to go through this query?