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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
mikebeccaria
Frequent Visitor

Using Table Selected Value Filter in Another Table

I am attempting to do something I believe should be simple - but can't figure it out. I want to filter visual Table B from a record selected in Table A, but only filter Table B using a subset of columns from Table A. Columns from both tables are based on the same table. I trying to create a calculated table to show the results of Table B.

 

--Calculated Table B

Table B =
--select the event_name value from a column in Table A
VAR selected_event_name = SELECTEDVALUE('event_expanded_view'[event_name])
--Return a table with ALL event_name, event_date from 'event_expanded_view', filter only using the selected value "event_name" from visual table A - no other filters from Table A
RETURN
CALCULATETABLE(
    SUMMARIZE(
        'event_expanded_view'
        ,event_expanded_view[event_name]
        ,event_expanded_view[actual_date]
    )
    ,FILTER('event_expanded_view', event_expanded_view[event_name] = selected_event_name
    )
)
 
I'm getting a blank result set. How can I get a table B of all event names and dates from 1 selected visual table A?
2 REPLIES 2
v-yiruan-msft
Community Support
Community Support

Hi @mikebeccaria ,

The data of calculated table does not depend on user interaction(slicer,filter etc.) in the report, you can create a slicer and table visual as below screenshot to achieve the same requirement. Please find the details in the attachment.

yingyinr_0-1675221816453.png

Best Regards

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

Thanks for your response @v-yiruan-msft. I appreciate it. My requirements want the user to be able to select the value in the table itself, not a slicer. I want to use the table as a slicer. Using your email screenshot, I would modify the left table to include multiple "event_name" rows with the same value and different dates (so more than 1 event_name "event01" for example). A user would select "1/13/2023, event01" from the left table, and then the second table on the right would show ALL of the "event01" rows and NOT not filter the "actual date" from the left table record. That is, show all the values where event_expanded_view[event_name] = selected_event_name ("event01" in the left table) but NOT filter the date. I appreciate your thoughts on how best to accomplish this if possible.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.