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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
mwilliamsjr
Frequent Visitor

Shipments and Open Order Horizon (Events in Time Scenario?)

Hello, 

I am struggling to come up with the correct DAX calculation and am coming to the forums for some guidance. 

Tables:

  • Sales: regular sales table showing historical sales and refreshed each week.
  • Backlog: table of open order snapshots (weekly, going back two years). Is refreshed each week at the same time of refresh as the Sales table.
  • Dates: Traditional Calendar table spanning contigous dates and includes additive columns such as WeekOfQuarter,Year-Qtr, etc.

Joins:

  • Sales[InvoiceDate]: Dates[Date] (many:1)
  • Backlog[EstShipDate]: Dates[Date] (many:1)

Measures:

  • Sales= Sum([SalesRevenue])
  • Backlog= Sum([BacklogRevenue])

What I would like to visualize is how the Open Orders grow 13 weeks from the start of each quarter, and how Sales+Backlog trend during the quarter, basically over a 26-week period. Finally, I would like to view prior quarters for their 26-week period to ultimately show trend quarter over quarter for the 26-week period.

I have prepared this chart in Excel with the data I have to give a sense of what I am looking for.  

mwilliamsjr_0-1646069492387.png

Any help will greatly be appreciated.

 

 

 

 

5 REPLIES 5
mwilliamsjr
Frequent Visitor

Hello, 

I am struggling to come up with the correct DAX calculation and am coming to the forums for some guidance. 

Tables:

  • Sales: regular sales table showing historical sales and refreshed each week.
  • Backlog: table of open order snapshots (weekly, going back two years). Is refreshed each week at the same time of refresh as the Sales table.
  • Dates: Traditional Calendar table spanning contigous dates and includes additive columns such as WeekOfQuarter,Year-Qtr, etc.

Joins:

  • Sales[InvoiceDate]: Dates[Date] (many:1)
  • Backlog[EstShipDate]: Dates[Date] (many:1)

Measures:

  • Sales= Sum([SalesRevenue])
  • Backlog= Sum([BacklogRevenue])

What I would like to visualize is how the Open Orders grow 13 weeks from the start of each quarter, and how Sales+Backlog trend during the quarter, basically over a 26-week period. Finally, I would like to view prior quarters for their 26-week period to ultimately show trend quarter over quarter for the 26-week period.

I have prepared this chart in Excel with the data I have to give a sense of what I am looking for.  

mwilliamsjr_0-1646069492387.png

Any help will greatly be appreciated.

You are using the terms "Open Orders"  and "Backlog"  - are these synonymous in your case?

 

Please provide sanitized sample data that fully covers your issue. If you paste the data into a table in your post or use one of the file services it will be easier to work with. Avoid posting screenshots of your source data if possible.

Please show the expected outcome based on the sample data you provided. Screenshots of the expected outcome are ok.

https://community.powerbi.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523

amitchandak
Super User
Super User

@mwilliamsjr ,
Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Hi and thank you for your response. 

The table in the linked file is a subset of the data that is shown in the chart from my initial post. The chart is based on the total column. The Backlog and sales are two different tables, and the backlog is snapshotted each week and added to the Backlog table. 

 

My original thought was to use the USERELATIONSHIP function using the DAX below, but I think this is half the equation.

Calculate([Rev | BiBa Commit], USERELATIONSHIP(dimDateInvoice[InvoiceDate], Backlog[WeekEnding])) 

 

https://docs.google.com/file/d/1fI7F6uZsZ3oZTsE4aOIOQq02CCdMnilw/edit?usp=docslist_api&filetype=msex...

 

Just in case you cannot get to the file, I am including the snapshot.

mwilliamsjr_0-1646223619474.png

 

 

 

Anonymous
Not applicable

Hi @mwilliamsjr ,

I can't access your files because I don't have a Google account... You can refer the following thread to upload the file in the community. Please note that exclude any sensitive info in your sharing file. 

How to upload PBI in Community

Do you want to create the following line chart by quarters? What's the calculation logic of these line values?

yingyinr_1-1646300614938.png

Best Regards

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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