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

View all the Fabric Data Days sessions on demand. View schedule

Reply
Anonymous
Not applicable

Need Help in DAX

 

Five Column Names = ParentID, ChildID, Column3, Column4, Column5
One ParentID can have multiple ChildIDs. 
Two or more  ParentIDs can have common Matching ChildIDs. 
I have created one slicer using ParentID column. I need a DAX to fetch only matching (intersecting) ChildIDs for selected ParentIDs (it could be multiple ParentIDs selection) in slicer

 

Note: We need to have ParentID slicer in the report. Solution should take into account multiple selections in slicer.

 

Scenario 1:

RahulShahane_0-1680269095071.png

Scenario 2 :

RahulShahane_1-1680269123120.png

 

 

 

 

2 REPLIES 2
DOLEARY85
Resident Rockstar
Resident Rockstar

sorry, also just make sure the selected measure filters the visual to only show value of 1

 

DOLEARY85_3-1680472355975.png

 

DOLEARY85
Resident Rockstar
Resident Rockstar

Hi,

 

i have something that might work:

 

Selected = var countselected = calculate(DISTINCTCOUNT('Table (5)'[ParentID]),ALLEXCEPT('Table (5)','Table (5)'[ParentID]))

var countchildid = calculate(count('Table (5)'[ChildID]))

Return
if (countchildid = countselected,1,0)
 
DOLEARY85_0-1680472206242.pngDOLEARY85_1-1680472226934.pngDOLEARY85_2-1680472279608.png

 

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