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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Janka1712
Frequent Visitor

Dates to another table

Hi, hope someone will help me

 

How do I get dates from main table to sales table? There is relationship betweent these two tables on Order column, orders can repeat in main table.

I need to have dates in sales table too because amounts are in different currencies and exchange rate formula will not work without date.

I tried TREATAS but have problem with date format.

3 REPLIES 3
v-jayw-msft
Community Support
Community Support

Hi @Janka1712 .

 

You said there are repeat orders in main table. does that mean there are multiple dates for one order in main table?

Consider there are 3 dates for order 001 in main table, which date shoud be used for order 001 in sales table?

If i misunderstood your meaning, please share some sample data to us.

 

Best Regards,

Jay

Community Support Team _ Jay
If this post helps, then please consider Accept it as the solution
to help the other members find it.
AllisonKennedy
Super User
Super User

You should be able to use RELATED(DimDate[Date]) or month, week, etc to get whatever info you need into the Orders table. This is only necessary if doing a Column or row context measure. Otherwise, the relationship should work as long as it is ACTIVE?


Please @mention me in your reply if you want a response.

Copying DAX from this post? Click here for a hack to quickly replace it with your own table names

Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C

I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com

I want a column. Relationship is active, many to many. That was first thing I tried, doesnt work. It is telling me this:

 

The column 'SSBI[TRIPNAME]' either doesn't exist or doesn't have a relationship to any table available in the current context.

Janka1712_1-1604969459647.png

 

 

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.