Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It 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 |
---|---|
94 | |
86 | |
78 | |
70 | |
63 |
User | Count |
---|---|
114 | |
99 | |
97 | |
65 | |
59 |