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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
AnSchmi
Helper II
Helper II

Slicer Week Offset USERELATIONSHIP Date

Hi Team, 
I have a simple model of orders and date table. The orders table contain open date as well as commitment date. 
I do not manage to calculate and show in Slicers the Week Offset of Open Date and Commitment date using userelationship. 
My model looks like this 

AnSchmi_0-1646644378722.png

And what I want to achieve is the Week Offset of Commitment Date

AnSchmi_1-1646644469809.png

Any help is highly appriciated. 
Stay save 
Thanks a lot
Andreas



1 ACCEPTED SOLUTION

Dear Amitchandak,
you made my day. This it was I was looking for. 
Thank you so much. 
Andreas

View solution in original post

4 REPLIES 4
amitchandak
Super User
Super User

@AnSchmi , Here you need two date tables or you need calculate offset in the table.

 

Or create calculated columns in your table f order

column 1 =

maxx(filter('D calendar', 'f order'[commitment date] = 'D calendar'[Date]), 'D calendar' [Week offset])

 

column 2 =

maxx(filter('D calendar', 'f order'[Order date] = 'D calendar'[Date]), 'D calendar' [Week offset])

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

Dear Amitchandak,
you made my day. This it was I was looking for. 
Thank you so much. 
Andreas

Anonymous
Not applicable

By Week Offset of Commitment Date, do you mean the difference betweens todays week and the week of Commitment date?

Can you include your DAX for both 'CurWeek Offset' and the 'Week Offset Date.Commitment'

Dear Nickolajj, 
thanks a lot for your immediate response. 
Amitchandak already presented the solution by adding two columns to the fact table. 
There is no DAX code, because Week Offset is taken from Calendar table. 
Have a nice day.
Best Regards
Andreas

 

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.