Forum Discussion
TR_Belgium
2 years agoFrequent Visitor
Count with slicers from 2 tables
Table A Table B Product code Product code SAP Id Category A Brand Category B Category C I have above 2 tables. Both tables are linked via a one-to-one rel...
bhanu_gautam
Super User
2 years agoTR_Belgium , First create a combined table either by using Merge in Power Query or by DAX
Go to model new table
CombinedTable =
NATURALINNERJOIN(
SELECTCOLUMNS(TableA, "Product code", TableA[Product code], "SAP Id", TableA[SAP Id], "Brand", TableA[Brand]),
SELECTCOLUMNS(TableB, "Product code", TableB[Product code], "Category A", TableB[Category A], "Category B", TableB[Category B], "Category C", TableB[Category C])
Then create measure
SAPIdCount = COUNTROWS(CombinedTable)
)
TR_Belgium
2 years agoFrequent Visitor
Thanks for the answer, would you know if it is also possible to have a solution without merging tables?