Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

top5

Hi everyone, i want to  filter top 5 by cost of material  and visualize it. The following DAX doesnt yield the desired result Top5 = TOPN(5; SUMMARIZE(Sheet1; Sheet1[Material];"devcosts"; SUM[cost...
  • Zubair_Muhammad's avatar
    6 years ago

    Anonymous 

     

    Try following

     

    Top5 =
    TOPN (
        5,
        SUMMARIZE ( Sheet1, Sheet1[Material], "devcosts", SUM[costs] ),
        [devcosts], DESC
    )