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
Anonymous
Not applicable

Data Manipulation

Hello fellows,

 

I'm trying to create a new variable from two diffent tables. I edited the relationship. However, the new variable that I need it is like the following one:

 

Table1

variable3: Clos_Date: mm/dd/yyyy

Table2

variable2: FYRf: wholenumber

 

The new variables 3: =YEAR(´table1'[Clos_Date])+if(MONTH(´table1´[Clos_Date])>=10,1,0)

 

Is it OK?

 

Thank you in advance for your help 🙂

 

1 ACCEPTED SOLUTION
v-sihou-msft
Microsoft Employee
Microsoft Employee

@Anonymous

 

In this scenario, I don't see the Table2 column is involved in your new variable. If this is One-to-One mapping, it supposes to work if you already build the relationship properly. If it still doesn't work, you can consider using LOOKUPVALUE() in your formula. Also see this blog: https://www.sqlbi.com/articles/from-sql-to-dax-joining-tables/

 

Regards,

View solution in original post

1 REPLY 1
v-sihou-msft
Microsoft Employee
Microsoft Employee

@Anonymous

 

In this scenario, I don't see the Table2 column is involved in your new variable. If this is One-to-One mapping, it supposes to work if you already build the relationship properly. If it still doesn't work, you can consider using LOOKUPVALUE() in your formula. Also see this blog: https://www.sqlbi.com/articles/from-sql-to-dax-joining-tables/

 

Regards,

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.