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.
Hi ,
do you have any experience with TOP N filter.
I have this problem . I have three columns within database -- Stock, Product, Profit.
I need to create visual - TOP 20 products by profit, for each stock.
So I don´t want to have- TOP 20 products by profit ror all stocks.
So I mean Top 20 products for stock 1, top 20 products for stock 2, ..................................................................
Should I use matrix or something else? Will TOP N filter work for this problem?
Solved! Go to Solution.
In this scenario, you need to create a RANK column/measure for filtering. The formula can be like:
= RANKX(ALL(Table2[Product]),CALCULATE(SUM(Table2[Sales]),ALLEXCEPT(Table2,Table2[Product],Table2[Stock])),,DESC,Dense)
Then you can add visual level filter.
Regards,
In this scenario, you need to create a RANK column/measure for filtering. The formula can be like:
= RANKX(ALL(Table2[Product]),CALCULATE(SUM(Table2[Sales]),ALLEXCEPT(Table2,Table2[Product],Table2[Stock])),,DESC,Dense)
Then you can add visual level filter.
Regards,
Poradi_pdk = RANKX(ALL(movement[pdk]);CALCULATE(SUM(movement[pcena_bd_celkem]);ALLEXCEPT(movement;movement[pdk];category_management[nadkategorie])))
Can you see where I made a mistake ?
I have stock called nadkategorie and they are in another table?
Poradi_pdk lost some products somewhere. When I use filter <=10 , many of product aren´t find by this filter.
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 |
---|---|
104 | |
95 | |
80 | |
67 | |
62 |
User | Count |
---|---|
147 | |
109 | |
107 | |
85 | |
63 |