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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Harpreet_14
Frequent Visitor

Top 5 Categories with top 3 subcategories not working with a slicer on the report page

Hi,

I have achieved correct output for top 5 Automation Candidates with top 3 applications, however when I add slicer on the page it show all the applications where i just need 3 top applications. Below are the results without slicer and with slicer.  

 

Dax - 

Rank Based on ticket count =
if(
    ISINSCOPE('Automation_Table'[Application_Name])&&HASONEVALUE('Automation_Table'[Application_Name]),
    RANKX(
        ALL('Automation_Table'[Application_Name])
        ,
        [Automation ticket count]
    )
)
 
 Output when slicer is not added: (***Required output when slicer is added on the page)
Harpreet_14_1-1704351698635.png       

 output when slicer is added:

Harpreet_14_3-1704352740657.png

 

Thanks 


 

 
 
1 REPLY 1
lbendlin
Super User
Super User

Please provide sample data that covers your issue or question completely, in a usable format (not as a screenshot).

Do not include sensitive information or anything not related to the issue or question.

If you are unsure how to upload data please refer to https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-...

Please show the expected outcome based on the sample data you provided.

Want faster answers? https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447...

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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