Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

tops and bottom rank

Hi All,

 

I had created Top and bottom report issue is for blanks also by default ranking assigns. And I wanted to write dax for Top 5 & Bottom 5.

 

this is the query i have written for Top and Bottom-Top Prtfl 2 = RANKX(ALL(RZ_PROD_D[PRTFL_LVL_2]),[Total Events],,DESC,Dense)

 

Bottom Prtfl 2 = RANKX(ALLSELECTED(RZ_PROD_D[PRTFL_LVL_2]), [Total Events],,ASC,Dense)

 

Thanks 

KNG

 

 

top & botom.PNG

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi 

 

Thanks for your help if condition is working with this scenario.

 

 

With regards,

kng

View solution in original post

4 REPLIES 4
v-piga-msft
Resident Rockstar
Resident Rockstar

Hi @Anonymous,

 

You could use if function to determine whether it is blank.

 

This similar thread may help you solve the blank problem.

 

If you still need help, please share a dummy pbix file which can reproduce the scenario, so that we can help further investigate on it? You can upload it to OneDrive or Dropbox and post the link here. Do mask sensitive data before uploading.)

 

Best Regards,

Cherry

Community Support Team _ Cherry Gao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Thanks for your support Cherry let me try with ur given solution if still had a problem let me upload 

 

 

Thanks 

kng

Hi @Anonymous,

 

Have you solved your problem?

 

If you have solved, you could share your solution or accept the replies making sense as solution to your question so that people who may have the same question can get the solution directly.

 

If you need further, please share your sample data and feel free to ask.

 

Best Regards,

Cherry

Community Support Team _ Cherry Gao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Hi 

 

Thanks for your help if condition is working with this scenario.

 

 

With regards,

kng

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.