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
shreyoogp
Frequent Visitor

Disconnected table slicer -filtering

Hi,

I am using Disconnected Table filter for the first time, and would appreciate if anyone can suggest how to achieve this?

I have a Disconnected table with values 1 to 10 . Also another table which contains Sales value for every product.

I have drop down for selection for the Product . Then a disconnected table slicer which lists values 1 to 10 and a Bubble chart visual depicting the Sales Amount.

For a selected product in the dropdown, once the user selects the value say for e.g 2, Top 2 Sales Amount should be displayed in the bubble chart. Similarly On selecting 3- Top 3 sales value to be displayed. How to achieve this.

 

Appreciate for any help in this regard

Thanks

1 ACCEPTED SOLUTION

Hi @shreyoogp ,

 

Here I create a sample to show you how to filter your visual by slicer from disconnected table.

My Sample:

RicoZhou_0-1661238967694.png

Measure:

Rank = 
VAR _SUMMARIZE =
    SUMMARIZE (
        ALL ( 'Table' ),
        'Table'[Company],
        "Sales", CALCULATE ( SUM ( 'Table'[Sales] ) )
    )
VAR _ADDRANK =
    ADDCOLUMNS ( _SUMMARIZE, "Rank", RANKX ( _SUMMARIZE, [Sales],, DESC, DENSE ) )
RETURN
    SUMX ( FILTER ( _ADDRANK, [Company] = MAX ( 'Table'[Company] ) ), [Rank] )
Filter = 
VAR _SELECTRANK =
    SELECTEDVALUE ( 'DisconnectedTable TopN'[Value] )
RETURN
    IF ( [Rank] <= _SELECTRANK, 1, 0 )

Result is as below.

RicoZhou_1-1661239064100.png

 

Best Regards,
Rico Zhou

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
PaulDBrown
Community Champion
Community Champion

PLease provide sample data or PBIX file and a depcition of the expected outcome





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






I have a drop down on filter like ProdA, Prod B, Prod C. Based on each Product selection  and  then select a value(1 to 10) from the disconnected table as shown below, the Bubble chart should display the Salesvalue . I am unable to reflect changes in the bubble chart when value from disconnected slicer filter is selected

DisconnectedTable TopN
1
2
3
4
5
6
7
8
9
10

 

Hi @shreyoogp ,

 

Here I create a sample to show you how to filter your visual by slicer from disconnected table.

My Sample:

RicoZhou_0-1661238967694.png

Measure:

Rank = 
VAR _SUMMARIZE =
    SUMMARIZE (
        ALL ( 'Table' ),
        'Table'[Company],
        "Sales", CALCULATE ( SUM ( 'Table'[Sales] ) )
    )
VAR _ADDRANK =
    ADDCOLUMNS ( _SUMMARIZE, "Rank", RANKX ( _SUMMARIZE, [Sales],, DESC, DENSE ) )
RETURN
    SUMX ( FILTER ( _ADDRANK, [Company] = MAX ( 'Table'[Company] ) ), [Rank] )
Filter = 
VAR _SELECTRANK =
    SELECTEDVALUE ( 'DisconnectedTable TopN'[Value] )
RETURN
    IF ( [Rank] <= _SELECTRANK, 1, 0 )

Result is as below.

RicoZhou_1-1661239064100.png

 

Best Regards,
Rico Zhou

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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.