Forum Discussion
Nested (3 levels) TOPN using Power BI DAX not working for categories but working for other
- 2 years ago
Hi TFRec
lbendlin already provided a very good approach, but still, if you seeking another way of doing that you can check this video this is not exact but with some modification this might help you to attain solution: https://youtu.be/cs2AwJljBrQ?si=yQR7T5WZZMfTaSDh
Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
Check for more intersing solution here: www.youtube.com/@Howtosolveprobem
Regards
on the top two levels do you want to show the total level value or only the value contributed by the underlying top 3?
Hello lbendlin ,
Thank you very much for having taken the time to look into this. Looking to have the value contributed by the underlying top 3, as it is working in your approach. Am however struggling to change the formula in such a way that it still does the top 3 for the other two upper levels as well.
- lbendlin2 years ago
Super User
You will have to create three calculated tables, either materialized or as part of the measure (there might be severe performance issues in the latter approach, especially with your amount of data). You need to start from the lowest level as I showed, and then need to use the result of that for the next level, and then the result of that for the top level.
Certainly doable but rather complex. Think about softening your requirement, or finding a graphical solution instead (like a decomposition tree)
- TFRec2 years agoFrequent Visitor
Hello lbendlin ,
Thank you very much for the help. I fear creating new tables I would impede a lot of the dynamic use of slicers, filters, etc. on the report unless I went the route of using new tables just for the list of values and then still dynamically calculate the values associated to them (which is doable), so I ended up using the approach indicated by another user.