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
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! It's time to submit your entry.

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 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.