Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

Helper I
Helper I

creating new table based on two table condition

There are two tables A and B and I want to merge below tables into the new one with subjects when IEYN and NSYN =yes. 

The below dax which i created combining both yes and no subjects

EligibleSubjects =
FILTER('Subject Eligibility', 'Subject Eligibility'[IEYN] = "Yes"),
"Subject", 'Subject Eligibility'[Subject]
FILTER('Treatment Period Inclusion Criteria', 'Treatment Period Inclusion Criteria'[NS_DSELIGYN] = "Yes"),
"Subject", 'Treatment Period Inclusion Criteria'[Subject]


Table A 
Subject 1Yes
Subject 2Yes
Subject 3Yes
Subject 4Yes
Subject 5No
Table B
Subject NSYN
Subject 1Yes
Subject 2Yes
Subject 3Yes
Subject 4No
Subject 5Yes
Super User
Super User

hi @Kiranbc 

try replacing FILTER with CALCULATETABLE

Super User
Super User

@Kiranbc , what if the issue ?


You can try like 


filter(Union(TableA, TableB), [IEYN] ="Yes")

Thanks Amit. There are other columns in the tables so i want just the subjects of the both tables in the new table with condition [IEYN] ="Yes" (Table A) and NSYN = "Yes" (Table B)

Helpful resources

PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors