Forum Discussion
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
- amitchandak
Super User
Anonymous , Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.
Refer my video on TOPN if that can help https://www.youtube.com/watch?v=QIVEFp-QiOk
- AnonymousNot applicable
Hi, heres some sample data.
Value Category 23836 Ex: Technische Anforderung und Planungstiefe 0 In: Verspätete Leistung 78686 In: Nachträgliche technische Leistungsänderung 2E+05 In: Fehlende Leistung 18728 Ex: Technische Anforderung und Planungstiefe ##### In: Nachträgliche technische Leistungsänderung 1E+05 Ex: Technische Anforderung und Planungstiefe 0 In: Sonstiges 0 In: Sonstiges 0 In: Sonstiges 0 In: Sonstiges 34854 In: Leistung ursprünglich nicht im Leistungsumfang 2E+05 In: Nachträgliche technische Leistungsänderung 39627 In: Nachträgliche technische Leistungsänderung 1E+05 Ex: Technische Anforderung und Planungstiefe ##### In: Nachträgliche technische Leistungsänderung 74632 Ex: Technische Anforderung und Planungstiefe 50107 Ex: Technische Anforderung und Planungstiefe 0 In: Sonstiges 18000 In: Nachträgliche technische Leistungsänderung ##### In: Nachträgliche technische Leistungsänderung 1E+05 In: Leistung ursprünglich nicht im Leistungsumfang 0 In: Sonstiges 15812 Ex: 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.
- AnonymousNot applicable
Hi Anonymous ,
Please follow the steps shown below:
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