Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more.
Get startedGrow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.
Hi all,
I have a Products table and a Sales table, which is related based on productID.
I want to do a "Top 10 + Others", based on sales. BUT I need to be able to make the slicer affect it, as we need to see it per company in our sales table.
How I did it:
Made a calculated column in the Products table to rank, based on sales:
Solved! Go to Solution.
Hi @PeterStuhr ,
The measure is dynamic but the calculated columns are computed during the database processing and then stored in the model. So In your scenario, we cannot make the calculated column dynamically by slicer.
We can try to create a measure in table visual meet your requirement:
Sales TopN+Others =
VAR RankbySales =
RANKX ( ALLSELECTED ( Products ); [Sales];; DESC )
RETURN
IF ( RankbySales <= 10; RankbySales; "Others" )
Best regards,
Hi @PeterStuhr ,
How about the result after you follow the suggestions mentioned in my original post?Could you please provide more details about it If it doesn't meet your requirement?
Best regards,
Hi @PeterStuhr ,
The measure is dynamic but the calculated columns are computed during the database processing and then stored in the model. So In your scenario, we cannot make the calculated column dynamically by slicer.
We can try to create a measure in table visual meet your requirement:
Sales TopN+Others =
VAR RankbySales =
RANKX ( ALLSELECTED ( Products ); [Sales];; DESC )
RETURN
IF ( RankbySales <= 10; RankbySales; "Others" )
Best regards,
User | Count |
---|---|
84 | |
79 | |
62 | |
62 | |
51 |
User | Count |
---|---|
109 | |
95 | |
86 | |
79 | |
61 |