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

Using slicer to view different data on the same visual

Hi,
Hope you're doing well. I have some data on the number of downoads, downloaders, seats provided, seats assigned for a software/app. I have loaded a few tables and created a visual showing "top 10 downloaders". I need to do the same "top 10" for downloads, seats assigned, provided, etc. Is there a way to create a slicer to select which top 10 data i want to see? Looking forward to hearing from you. 
Thanking you,
teckchan

1 ACCEPTED SOLUTION
TeigeGao
Solution Sage
Solution Sage

Hi @Anonymous ,

In your scenario, we can create a table with the top 10 items of each dataset and the dataset name:

Assume we have two sets of data:

PBIDesktop_VDTBODhvy6.png

Then we can create a calculated table like below:

Table =
UNION (
    ADDCOLUMNS (
        TOPN ( 10, 'seats provided', 'seats provided'[number], ASC ),
        "count item", "seats provided"
    ),
    ADDCOLUMNS (
        TOPN ( 10, 'downloads', 'downloads'[number], ASC ),
        "count item", "downloads"
    )
)

Then use the "count item" as the slicer, use other field as the visual, the result will like below:

ZRVlyITj5d.gif

Best Regards,

Teige

View solution in original post

1 REPLY 1
TeigeGao
Solution Sage
Solution Sage

Hi @Anonymous ,

In your scenario, we can create a table with the top 10 items of each dataset and the dataset name:

Assume we have two sets of data:

PBIDesktop_VDTBODhvy6.png

Then we can create a calculated table like below:

Table =
UNION (
    ADDCOLUMNS (
        TOPN ( 10, 'seats provided', 'seats provided'[number], ASC ),
        "count item", "seats provided"
    ),
    ADDCOLUMNS (
        TOPN ( 10, 'downloads', 'downloads'[number], ASC ),
        "count item", "downloads"
    )
)

Then use the "count item" as the slicer, use other field as the visual, the result will like below:

ZRVlyITj5d.gif

Best Regards,

Teige

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.