Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Pbiuserr
Post Prodigy
Post Prodigy

ADDCOLUMNS/SUMMARIZE for columns from different tables

Hello, 
My goal is to create a VAR _table which will contain

a) gender from table personal

b) product description from table product description

 

there is no link between these 2 tables, they are all connected to main table by either personID or productID

 

1 ACCEPTED SOLUTION

Hi @Pbiuserr ,

 

If you want do this with some filter by the relationships between fact table and Person table and Product description table, please change one of the relationships' cross filter direction to both.

If do not do this, it maybe complai to reatch that.

 

And after changing the direction, use meausre like the following:

 

var _s = summarize( 'Person table', [Gender],'Product description table'[Product description],"some column name", <expression>)

 

If you need more help, please share some example data and expect result.

 

Best Regards

Community Support Team _ chenwu zhu

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
AlB
Community Champion
Community Champion

Hi @Pbiuserr 

I don't understand what you mean by "main table". Can you show a sample of the relevant tables and their relationships (including that "main table")? With the expected result

 

SU18_powerbi_badge

Please accept the solution when done and consider giving a thumbs up if posts are helpful. 

Contact me privately for support with any larger-scale BI needs, tutoring, etc.

 

Well, fact table (can't share screenshots, sensitive data in column names)
So there are 3 tables
Fact table

Person table

Product description table

 

Person table is connected to fact table with personID

Product description table is connected to fact table with productID

 

My goal is to get a table that shows (for measure, so stored as VAR) 

GenderProduct descriptionMy measure (change prior last month)




Hi @Pbiuserr ,

 

If you want do this with some filter by the relationships between fact table and Person table and Product description table, please change one of the relationships' cross filter direction to both.

If do not do this, it maybe complai to reatch that.

 

And after changing the direction, use meausre like the following:

 

var _s = summarize( 'Person table', [Gender],'Product description table'[Product description],"some column name", <expression>)

 

If you need more help, please share some example data and expect result.

 

Best Regards

Community Support Team _ chenwu zhu

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.