March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Hi experts, I want to create a dynamic top n function in matrix visual,
here is the rankx DAX:
it works well when only one dimension in row of matrix:
but when I dragged multiple dimensions, it fails to show and seems to loading data all the time,
any solutions?
the rank only based gpn level, when other dimension added, just keep the same rank
Hi @oakfootballclub - When dealing with multiple dimensions, make sure the RANKX function and filters are efficient.
cal_amount_FYTD_rk =
RANKX(
ALLSELECTED(
REMOVEFILTERS(
dim_pub_dict_staff_df[gpn],
dim_pub_dict_staff_df[another_dimension] -- Add other dimensions as needed
)
),
[cal_amount_FYTD_PreviousM],
,
DESC,
DENSE
)
Ensure the slicer measure respects the ranking for the selected dimensions
_cal_slicer_FYTD_Amount_topx =
IF(
[cal_amount_FYTD_rk] <= SELECTEDVALUE(dim_topxslicer[col]),
1,
0
)
Select a Top N Value from the slicer and Matrix Visual updates dynamically to reflect the top N items based on the selected value and all specified dimensions.
Did I answer your question? Mark my post as a solution! This will help others on the forum!
Appreciate your Kudos!!
Proud to be a Super User! | |
Thank you, I added a display name want to have a try, but it show an error, could you please look at where it goes wrong?
could anyone who is still intereted in this question help to solve it?
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
124 | |
89 | |
84 | |
70 | |
51 |
User | Count |
---|---|
206 | |
146 | |
97 | |
79 | |
69 |