Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
I have a table of products with category and subcategory and I would like to get a Matrix Report with the TopN + other of category and subcategory.
I'm trying to rank my table dynamically both in category and subcategory by sales but I can't find a way to do it.
This is the code to get the table:
I have also tried to create the following measure :
Hi @superBro22
Thanks for reaching out to us.
please give your expected output, when category and sub category are empty, what the expected result should be?
Best Regards,
Community Support Team _Tang
If this post helps, please consider Accept it as the solution to help the other members find it more quickly.
Hi @v-xiaotang Thanks in advance for your help.
I would like the TopN to be dynamic and not include blank categories and subcategories and for duplicate sales values to be sorted correctly.
I have tried to create the following measure :
Rank Product = IF ( ISINSCOPE('Table'[SubCategory] ), RANKX ( CALCULATETABLE ( VALUES ( 'Table'[SubCategory] ), ALLSELECTED ('Table'[Sub Category] ) ), [You go out] ) )
But the result is not what expected:
This is my expected output for TopN = 3:
This is the code to get the table:
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
111 | |
100 | |
80 | |
64 | |
58 |
User | Count |
---|---|
146 | |
110 | |
93 | |
84 | |
67 |