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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
alexpegg86
Helper I
Helper I

How to show certain values in the rows of a table based on selections in the slicers

I'm trying to create a data table in my pbi report where a user can select a retailer, and the rows of the table are filtered to all the retailers in the environement for that selected retailer.

 

Here is the data for the retailers and their envionments:

 

RetailerEnvironment
AldiEuro Discounters
LidlEuro Discounters
AsdaGrocery
IcelandGrocery
MorrisonsGrocery
OcadoGrocery
Other Mult GrocersGrocery
SainsburyGrocery
TescoGrocery
Total Co-Operative Group KadGrocery
WaitroseGrocery
Convenience MultiplesTotal Impulse
IndependentsTotal Impulse
Multiple ForecourtsTotal Impulse
SymbolsTotal Impulse

 

So for exmaple if i selected Aldi in the retailer slicer, i would want the rows in the table to just show Aldi and Lidl. 

If i selected Asda, i would want the rows to show all those retailers in the Grocery environment (Asda, Iceland, Morrisons etc).

 

Any help on this would be much appreciated!

 

Thanks.

 

 

2 ACCEPTED SOLUTIONS
Ashish_Mathur
Super User
Super User

Hi,

I have solved a similar problem in the attached file.  Please review it and adapt the solution to your dataset.

Hope this helps.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

Anonymous
Not applicable

Hi @alexpegg86 ,

Previously I used new group, which works but seems cumbersome. So I used another method where I copied an identical table. Created a two Measures.

Measure =
VAR _A =
    SELECTEDVALUE ( 'Table 2'[Retailer] )
RETURN
    CALCULATE ( SELECTEDVALUE ( 'Table 2'[Environment] ), 'Table 2'[Retailer] = _A )
Measure 2 =
IF(SELECTEDVALUE('Table'[Environment])=[Measure],[Measure],BLANK())

vyilongmsft_0-1709801728658.png

Then I get what you want.

vyilongmsft_1-1709801815336.png

 

 

 

Best Regards

Yilong 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

8 REPLIES 8
Ashish_Mathur
Super User
Super User

Hi,

I have solved a similar problem in the attached file.  Please review it and adapt the solution to your dataset.

Hope this helps.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Anonymous
Not applicable

Hi @alexpegg86 ,

For your question, I think you can use the New group feature.

vyilongmsft_2-1709603923207.png

where you can categorize your needs.

vyilongmsft_3-1709604036179.png

This way you can add the new group to slicer and get the results you need.

vyilongmsft_4-1709604159948.png

 

 

 

Best Regards

Yilong Zhou

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

Hi,
 
Thanks for taking the time to respond. 
 
I'm not sure if the grouping function can give me what i'm trying to see. Below is a screenshot of my report.
 
alexpegg86_2-1709651307174.png

 


 

 
So when i select "Asda" in the filter, as expected it will filter the table to Asda only... what i would like it to show is Asda as well as all the other customers in the same environment as Asda, like in the screenshot below:
 
alexpegg86_3-1709651325544.png

 


 

 
 
I think @Ashish_Mathur with your solution i can get close, but not quite there. I'll kepe playing around with it so see if i can find the solution.
Anonymous
Not applicable

Hi @alexpegg86 ,

Previously I used new group, which works but seems cumbersome. So I used another method where I copied an identical table. Created a two Measures.

Measure =
VAR _A =
    SELECTEDVALUE ( 'Table 2'[Retailer] )
RETURN
    CALCULATE ( SELECTEDVALUE ( 'Table 2'[Environment] ), 'Table 2'[Retailer] = _A )
Measure 2 =
IF(SELECTEDVALUE('Table'[Environment])=[Measure],[Measure],BLANK())

vyilongmsft_0-1709801728658.png

Then I get what you want.

vyilongmsft_1-1709801815336.png

 

 

 

Best Regards

Yilong Zhou

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

Thanks @v-yilong-msft   - this has nearly got me there!

 

I was wondering if you could take a look at the attached pbi file. I've now added numeric data into the table, and i'm trying to get table 3 to filter as it would without the numeric data in table 1.

 

So in the attached there are three tables:

  1. Table without numeric data
  2. Table with numeric data direct from the Volume column of data
  3. Table with numeric data from a measure

 

It's table 3 that i wanted to know if the data will filter to how it is in the other two tables, as in my actual pbi report i would need to use a measure to get the data i need.

 

Do you know if this would be possible?

Just realised i can't upload a pbi file to show you 😐

Greg_Deckler
Community Champion
Community Champion

@alexpegg86 Use a Complex Selector: The Complex Selector - Microsoft Fabric Community



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Thanks for sharing Greg - i had a look at that post but can't figure out how i'd apply it to my data, as your example looks at summing data whereas i just want to simply show certain values based on what is selected in a slicer.

 

Any idea how i could go about this?

 

Alex

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.