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

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!

Reply
Jeremy19
Helper III
Helper III

Create variable from another table

Hi,

I would like to create a variable from another table, for example:

 

Table A        

Var1      ord

A           1

A           1

B           2

A           1

 

Table B

Var1      ord

A          1

B          2

 

There is a relation between the two tables with Var1 and I would create the variable ord of table A using table B. Or just sort Var1 from table A from the variable ord of table B but I don't think it's possible. Someone can help me ?

 

Thanks !

1 ACCEPTED SOLUTION
Zubair_Muhammad
Community Champion
Community Champion

Hi @Jeremy19

 

You can use this column in Table A

Ord= RELATED(TableB[Ord])

View solution in original post

2 REPLIES 2
Zubair_Muhammad
Community Champion
Community Champion

Hi @Jeremy19

 

You can use this column in Table A

Ord= RELATED(TableB[Ord])

Perfect ! Thanks

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! It's time to submit your entry.

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.