Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
Hi,
I'm trying to build a command to first check if a value is in one of two tables while fulfilling a condition, and then print either 0 or 1 to a column. I'm having trouble combining these all to one command.
So, first I want to check if a value on table1 is on table2 or table3 AND marked on the same row as type a. If the value is found on either of the tables as type a, then command should return 1 to the column on table 1. Otherwise, if the value is not found or is not marked type a, it should return 0 to the column.
I'm basically wanting to combine an IF ELSE structure with an additional condition. How could this be done efficiently?
Hi,
I am not sure if I understood, but here is an attempt:
Table1:
Table2
Table3:
Here in table1 we have Type A Dimension AA and Type B dimension AA which are found in table 2 or 3 with matching values. These rows should get a value 1 in our dax.
Dax:
The result seems to match the expectation.
Proud to be a Super User!
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.
User | Count |
---|---|
13 | |
11 | |
9 | |
8 | |
8 |