Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago

Top N categories in table

Hi everyone,

 

i'm trying to get a table show the top 3 categories together with the corresponding value sum for the category.

I tried showing the category as well as value in the table and using the top n filter by the field value - but this obviously only returnes the top 3 values and their corresponding categories, not the other way around.

 

i also tried a quick measure "total for category (filters not applied)" set the base value to "sum of value" and the category to "category" and it returns some data but definitely not the sum of values per category. 

 

Any ideas?Thank you!

 

3 Replies

    • Anonymous's avatar
      Anonymous
      Not applicable

      Hi, heres some sample data.

       

      ValueCategory
      23836Ex: Technische Anforderung und Planungstiefe
      0In: Verspätete Leistung
      78686In: Nachträgliche technische Leistungsänderung
      2E+05In: Fehlende Leistung
      18728Ex: Technische Anforderung und Planungstiefe
      #####In: Nachträgliche technische Leistungsänderung
      1E+05Ex: Technische Anforderung und Planungstiefe
      0In: Sonstiges
      0In: Sonstiges
      0In: Sonstiges
      0In: Sonstiges
      34854In: Leistung ursprünglich nicht im Leistungsumfang
      2E+05In: Nachträgliche technische Leistungsänderung
      39627In: Nachträgliche technische Leistungsänderung
      1E+05Ex: Technische Anforderung und Planungstiefe
      #####In: Nachträgliche technische Leistungsänderung
      74632Ex: Technische Anforderung und Planungstiefe
      50107Ex: Technische Anforderung und Planungstiefe
      0In: Sonstiges
      18000In: Nachträgliche technische Leistungsänderung
      #####In: Nachträgliche technische Leistungsänderung
      1E+05In: Leistung ursprünglich nicht im Leistungsumfang
      0In: Sonstiges
      15812Ex: Technische Anforderung und Planungstiefe

       

      i need to show the top 3 categories 

       

      cat 1 - sum of value of cat 1

      cat 2 - sum of value of cat 2

      cat 3 - sum of value of cat 3

       

      I already got the full list (not top 3, but all). But now if i filter the top three by value, i only get back the three biggest values and their corresponding categories, not the three biggest category sums.

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi Anonymous ,

    Please follow the steps shown below:

     

    Here is the pbix file.

     

    Did I answer your question ? Please mark my reply as solution. Thank you very much.
    If not, please upload some insensitive data samples and expected output.

     

    Best Regards,
    Eyelyn Qin