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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
BMltc
Helper II
Helper II

Visual filtered with a characteristic of the selected row

Hi Community,

 

I have a simple question, and apologize if this has already been answered. I have a table data

NameSectorValue
ASector 11
BSector 25
CSector 14
DSector 37
ESector 18
FSector 24
GSector 15
HSector 23
ISector 24

 

I have a table visual like above and when I select a row (let's say A), I want another visual to show every row with the same sector (Sector 1 in my example) with their values

 

NameSectorValue
ASector 11
CSector 14
ESector 18
GSector 15

 

Can someone help me?

 

Many thanks

 

Boris

 

1 ACCEPTED SOLUTION
v-yingjl
Community Support
Community Support

Hi @BMltc ,

You need to create a calculated table first:

test = 
SUMMARIZE(
    'Table',
    'Table'[Name],
    'Table'[Sector],
    'Table'[Value]
)

Then create a control measure and set its value as 1 in the table visual filter:

Control = 
var _t1 = SELECTEDVALUE('Table'[Sector])
var _t2 = SELECTEDVALUE(test[Sector])
return
IF(
    _t1 = _t2 ,1,0
)

sector.png

Attached the sample file that hopes to help you: Visual filtered with a characteristic of the selected row.pbix

 

Best Regards,
Yingjie Li

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,

Drag Sector to the row labels of the Tabel visual and filter it on Sector 1.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
v-yingjl
Community Support
Community Support

Hi @BMltc ,

You need to create a calculated table first:

test = 
SUMMARIZE(
    'Table',
    'Table'[Name],
    'Table'[Sector],
    'Table'[Value]
)

Then create a control measure and set its value as 1 in the table visual filter:

Control = 
var _t1 = SELECTEDVALUE('Table'[Sector])
var _t2 = SELECTEDVALUE(test[Sector])
return
IF(
    _t1 = _t2 ,1,0
)

sector.png

Attached the sample file that hopes to help you: Visual filtered with a characteristic of the selected row.pbix

 

Best Regards,
Yingjie Li

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

 

Maybe a follow up question if I may @v-yingjl , I would prefer to show the 'Test' table as a stacked column chart, ideally with the row selected in Table highlighted in the chart, do you think it is possible?

 

Many thanks again,

v-yingjl
Community Support
Community Support

Hi @BMltc ,

Write this simliar measure and put it in the value field:

Measure 2 = 
var _t1 = SELECTEDVALUE('Table'[Sector])
var _t2 = SELECTEDVALUE(test[Sector])
return
IF(
    _t1 = _t2 ,SUM(test[Value]),0
)

 

chart.png

 

Best Regards,
Yingjie Li

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

Perfect! thanks

Perfect, thanks a lot, many thanks to all

amitchandak
Super User
Super User

@BMltc , Try like

measure =

var _tab = distinct(filter(all(Table), table[name] =selected(Table[name])),[Sector])
return
calculate(sum(table[Value]),filter(All(Table), Table[Sector] in _tab))

 

But better a new disconnected table for Name so that you can avoid all

 

measure =

var _tab = distinct(filter((Table), table[name] =selected(Name[name])),[Sector])
return
calculate(sum(table[Value]),filter((Table), Table[Sector] in _tab))

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Hi @amitchandak ,

 

Many thanks for your help. The Selected function does not seem to be supported in Dax, did you mean allselected or selectedValues?

 

 

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.

Top Solution Authors
Top Kudoed Authors