The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hiya,
I am connected to two tables via direct query, and both contain some geographic data. Below sample screenshot shows the tables:
also, the model is simple like the below:
My ask is to create a new virtual table with DAX (not PQ), where Table1[zip code] = Tbale2[zip code] and return these columns:
City, lat, long, zip, State and country.
Thanks
Sample file
Solved! Go to Solution.
You could add a new table like
Combined table =
GENERATE(
'Table1',
SELECTCOLUMNS(
FILTER( 'Table2', 'Table2'[Zip Code] = 'Table1'[Zip Code] ),
"State", 'Table2'[State],
"Country", 'Table2'[Country]
)
)
You could add a new table like
Combined table =
GENERATE(
'Table1',
SELECTCOLUMNS(
FILTER( 'Table2', 'Table2'[Zip Code] = 'Table1'[Zip Code] ),
"State", 'Table2'[State],
"Country", 'Table2'[Country]
)
)
Thank you very much.
User | Count |
---|---|
10 | |
9 | |
6 | |
6 | |
5 |
User | Count |
---|---|
21 | |
14 | |
14 | |
9 | |
7 |