Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreWe've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now
Hi, all.
I'm trying to calculate my company's historic backlog over the last several years, then plot it on an area chart. I have the following relevant fields:
I also have a primary relationship set up between Invoice Date & my Date Table, and a secondary relationship set up between Booked Date and my Date Table.
My first need is to know, on any given day, the number of units that had been booked but not yet invoiced. That's the most basic definition of backlog. So calculate [Total Units] on that date if the order has been booked on or before that day, but not yet invoiced. I just don't know how to get the syntax right in my DAX.
In plain English - Backlog Units equals, for any specific date, the number units associated with orders that have been Booked by that specific date, but not yet Invoiced by that date. How do I do that?
Bonus Question: I'd also like to be able to bucket the backlog by the time between "Booked Date" and "Request Date" (when the customer wants the unit delivered), then display those on an area chart as well, so we can those buckets vary over time. How do I create that calculation?
Thanks so much!
Solved! Go to Solution.
Hi @Dave1mo1 ,
The Table data is shown below:
Use the following DAX expression to create a measure
Measure =
VAR _a = MAX('Date'[Date])
VAR _b = SUMX(FILTER('Table','Table'[Booked Date for the Order] <= _a && ISBLANK('Table'[Invoice Date for the Order]) || 'Table'[Invoice Date for the Order] > _a ),[Units])
RETURN _b
Final output
Hi,
So sorry for the delayed response. I'm looking to be able to plot this on an area or line chart over time, which I'm not able to do with the measure above. How would I adjust the measure to be able to calculate what the backlog was on each date and produce something like the chart below?
Hi @Dave1mo1 ,
The Table data is shown below:
Use the following DAX expression to create a measure
Measure =
VAR _a = MAX('Date'[Date])
VAR _b = SUMX(FILTER('Table','Table'[Booked Date for the Order] <= _a && ISBLANK('Table'[Invoice Date for the Order]) || 'Table'[Invoice Date for the Order] > _a ),[Units])
RETURN _b
Final output
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 55 | |
| 35 | |
| 31 | |
| 19 | |
| 17 |
| User | Count |
|---|---|
| 75 | |
| 72 | |
| 38 | |
| 35 | |
| 25 |