Forum Discussion
Anonymous
7 years agoNot applicable
DAX Select all except topN
Hello all Is there a way to select all values from a table except the topN? Sample data can be found here: sample data onedrive I want to know the impact of the top 3 worse employees...
- 7 years ago
Hi Anonymous
You may check below measure.
Measure = VAR a = SUMMARIZE ( sampledata, sampledata[employeename], "AboveAverageAgent", AVERAGE ( sampledata[timetocomplete] ) ) VAR b = ADDCOLUMNS ( a, "rank", RANKX ( a, [AboveAverageAgent] ) ) RETURN CALCULATE ( SUM ( sampledata[completedintime] ) / DISTINCTCOUNT ( sampledata[orderid] ), FILTER ( b, [rank] > 3 ) )Regards,
Cherie
PattemManohar
Community Champion
7 years agoAnonymous It will be great if you can provide us sample data and expected output..... You DON'T need to provide actual data...
Anonymous
7 years agoNot applicable
Added it :)