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

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.

Reply
Anonymous
Not applicable

How to operate with unlinked tables with the same column

Hi everyone!

 

I am working in a project and I would like to multiply the number of elements within a category of two unlinked tables (which have the same categories). I show some dummy data I've just created to make it more visual. 

andresfe_0-1669995175147.png  Table 1

andresfe_1-1669995219132.png Table 2

 

My goal is representing a colum chart that has 4 columns, each one representing the product of the number of elements of each category of each table, The next image shows, what I want.

andresfe_3-1669995415402.png

 

My problem is that I've made this by creating two new tables, and I can't do that in my real project since I am using an online database by 'Analysis Services' -> 'Connect Live' so I can't create auxiliary tables/columns and modify relationships (in the original data, Category column can't be related between Table 1 and Table 2).

 

Do you know how to make this by just using measures? I leave you my dummy data.

 

https://drive.google.com/drive/folders/1otPwWGRprP-MkC-ZKMptyEYfHkF37r8D?usp=sharing

 

Thank you!!

 

 

 

 

1 ACCEPTED SOLUTION
lbendlin
Super User
Super User

 

 

 

At a very minimum you  need to have a reference table with all possible categories.  That cannot be dynamic. 

 

Then you can add a measure:

V1xV2 = 
var a = values(Categories[Cat])
var b = ADDCOLUMNS(a,"SM", var c=[Cat] return sumx(filter(Table1,[C1]=c),Table1[V1])*sumx(filter(Table2,[C1]=c),[V2]))
return sumx(b,[SM])

And then use that in your visual

lbendlin_1-1670098539444.png

 

 

View solution in original post

2 REPLIES 2
lbendlin
Super User
Super User

 

 

 

At a very minimum you  need to have a reference table with all possible categories.  That cannot be dynamic. 

 

Then you can add a measure:

V1xV2 = 
var a = values(Categories[Cat])
var b = ADDCOLUMNS(a,"SM", var c=[Cat] return sumx(filter(Table1,[C1]=c),Table1[V1])*sumx(filter(Table2,[C1]=c),[V2]))
return sumx(b,[SM])

And then use that in your visual

lbendlin_1-1670098539444.png

 

 

Anonymous
Not applicable

Thank you!

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

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.