Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register 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!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
118 | |
75 | |
46 | |
44 | |
34 |
User | Count |
---|---|
180 | |
85 | |
68 | |
47 | |
46 |