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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
Anonymous
Not applicable

Dax formule

hello i need some help to make a table visual

 

i want to make a table that if i select a name in a another table that it filters to table to the items of the name if i dont select anything in the table i want that the other table is emty 

 

if i would use a slicer i would use this dax measure 

Lege kaart visuals =
//Geeft een lege kaart of tabel als geen waarde is geselecteerd
If(HASONEVALUE(dataset),SELECTEDVALUE(dataset,"_"))

 

now this measure doesnt work with filtering from a table :S

 

if placed a screenshot of my dashbpoard

Krijgerss21_0-1686899783165.png

so if i select a person in the left table the right table must filter if i dont select a person i want that the richt table is empty

2 REPLIES 2
Anonymous
Not applicable

Hi @Anonymous ,

 

You can use the following DAX measure to filter the table based on the selected name in the other table:

Filtered Table = 
IF(
    ISFILTERED('Table'[Name]),
    CALCULATE([EXPRESSION], FILTER('Table', 'Table'[Name] = SELECTEDVALUE('Table'[Name]))),
    BLANK()
)

This measure checks if the 'Name' column in the 'Table' is filtered. If it is, then it filters the 'Table' to show only the rows where the 'Name' column matches the selected value. If it is not filtered, then it returns a blank table.

                                                                                                                                                         

Best Regards,

Stephen Tao

 

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

GuillaumePower
Resolver I
Resolver I

I've 2 questions, do you have two tables with a relationship between ? Do you have already a correct filtering whitout the "no selection" issue ?

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors