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
Danort123
New Member

Problem with second date column

Hello all, and thanks for the help you provide in a daily basis, it saved us a lot of times in moments of need.

 

I could not find any solution for this problem, and maybe someone here can hint me how to proceed. I have a date dimension linked to 2 fact tables:

 

1. Normal sales facts table linked by SQL query

2. Folder with daily excels with forecasts.

 

The issue is with this  second one, I created a date column from the file name, and it contains a second date column with dispatch dates for the next n days. The idea is comparing the sales variation with the forecast in first day of the month, but I don't know how to prepare the model or which measure to use to achieve this.

 

Example.-

File 01/11 has forecast for 07/11 of 100k

Sales at 7/11 are 80k

 

Variation would be -20% from forecast.

 

I made it work for month aggregation (cumulative sales and last day forecast) using lastdate / Max (Date) measures, but I cannot make it work for daily basis, due to the dispatch date not being linked to the date table dimension. I tried creating a secondary relationship, and using USERELATIONSHIP measure, but I could not do it.

 

I hope the issue was understood, and someone can help me, since I cannot publish the file here :_(

 

Thank you very much, and have a very nice day.

 

Kind regards

 

 

1 REPLY 1
Ashish_Mathur
Super User
Super User

Hi,

If you cannot share the file, then share some dummy tables to work with and show the expected result clearly.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

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.