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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Parvez933
Helper I
Helper I

Selected but also display all

Hi,

 

We are trying to create a table and slicer which shows the below information in the form of 1 entry per selection:

 

CompanyPackage
A1.Bronze
A2.Silver
AA1.Bronze
AAA1.Bronze
AAA3.Gold
B2.Silver
BB1.Bronze
BB2.Silver
BB3.Gold
BBB3.Gold
C2.Silver
C3.Gold
CC2.Silver
CCC1.Bronze
 

 

To explain indetail with a example:

 

The above table has to be shown as it is in the tab and there would be a filter called Pacakage with 3 entries

1. Bronze

2. Silver

3. Gold

 

and if I select 1. Bronze only the below 2 rows has to show, this is because AA and CCC have 1. Bronze only once and all other have 2/more entiries.

 

AA1.Bronze
CCC1.Bronze

 

Example 2:

 

If we select 2. Silver only 2 entries has to be shown, like wise for Gold

 

B2.Silver
CC2.Silver

 

Can anyone please help and also can anyone please help me how can I upload/attach any attachment here

 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Parvez933 ,

 

  1. You need to create table to put the “Package” into the table, then use it as the slicer option, the code is as follows:

Table 2 = SUMMARIZE('Table','Table'[Package])

vxinruzhumsft_0-1669098200234.png

Then create a 1:N relationship between the tables

vxinruzhumsft_0-1669099691600.png

 

2. Create a new measure, and input the following code, and put the measure to the visual filter, set the condition that , the measure equal to 1

 

Measure = IF(ISFILTERED('Table 2'[Package]),IF(CALCULATE(COUNTA('Table'[Company]),'Table'[Company]=SELECTEDVALUE('Table'[Company]),ALL('Table'))=1,1,0),1)

 

vxinruzhumsft_1-1669098200242.png

 

 

The related Output

vxinruzhumsft_2-1669098200244.png

 

vxinruzhumsft_3-1669098200245.png

 

vxinruzhumsft_4-1669098200246.png

 

 

 

 

If your Current Period does not refer to this, please clarify in a follow-up reply.

 

Best Regards,

Xinru Zhu

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

2 REPLIES 2
Parvez933
Helper I
Helper I

Hi @Xinru Zhu,

 

This is the expectation and we have achieved it. Thank You for your help.

Anonymous
Not applicable

Hi @Parvez933 ,

 

  1. You need to create table to put the “Package” into the table, then use it as the slicer option, the code is as follows:

Table 2 = SUMMARIZE('Table','Table'[Package])

vxinruzhumsft_0-1669098200234.png

Then create a 1:N relationship between the tables

vxinruzhumsft_0-1669099691600.png

 

2. Create a new measure, and input the following code, and put the measure to the visual filter, set the condition that , the measure equal to 1

 

Measure = IF(ISFILTERED('Table 2'[Package]),IF(CALCULATE(COUNTA('Table'[Company]),'Table'[Company]=SELECTEDVALUE('Table'[Company]),ALL('Table'))=1,1,0),1)

 

vxinruzhumsft_1-1669098200242.png

 

 

The related Output

vxinruzhumsft_2-1669098200244.png

 

vxinruzhumsft_3-1669098200245.png

 

vxinruzhumsft_4-1669098200246.png

 

 

 

 

If your Current Period does not refer to this, please clarify in a follow-up reply.

 

Best Regards,

Xinru Zhu

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

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.