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!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi,
Fairly new to Power BI and hoping someone can help.
I am looking for the DAX code in order to create a new table (Table C) from two calculated tables (Table A & Table B).
Essentially, for each row in Table A the result (Table C) has a seperate row for each item, for each period but does not create non-applicable combinations, for example Green - Flags.
Hope that explains what I am looking for, Im supper grateful for any help/thoughts/comments.
Thanks!
Solved! Go to Solution.
rename the colors column in table B and use DAX to create a table.
Table =
VAR tbl=ADDCOLUMNS(CROSSJOIN('Table A',TableB),"check",if('Table A'[Colors]=TableB[Color],"Yes"))
return SELECTCOLUMNS(FILTER(tbl,[check]="Yes"),"period",'Table A'[period],"Colors",'Table A'[Colors],"item",TableB[Item])
Proud to be a Super User!
create new table c and then us the following dax
table = crossjoin(table a, table b)
rename the colors column in table B and use DAX to create a table.
Table =
VAR tbl=ADDCOLUMNS(CROSSJOIN('Table A',TableB),"check",if('Table A'[Colors]=TableB[Color],"Yes"))
return SELECTCOLUMNS(FILTER(tbl,[check]="Yes"),"period",'Table A'[period],"Colors",'Table A'[Colors],"item",TableB[Item])
Proud to be a Super User!
Thanks! That seemed to do the trick 🙂
you are welcome
Proud to be a Super User!
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 104 | |
| 82 | |
| 72 | |
| 46 | |
| 35 |