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
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
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!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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.