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.
hi bi fanz
i'm trying to create a table where it has rolling overdue order
For e.g in the excel; its able to record the no. of overdue till the order was processed
Excel formula "COUNTIFS(DN created on,"<"&start date,pack status,"overdue",">"&completion date)+COUNTIFS(DN created on,"<"$start date,pack status,"overdue",completion date,empty/null)"
21-Aug | 22-Aug | 23-Aug | 24-Aug | 25-Aug | 26-Aug | |
Fri | Sat | Sun | Mon | Tue | Wed | |
Pick Overdue | - | 1 | 2 | - | - | - |
Pack Overdue | - | 8 | 46 | - | - | - |
in my dummy date table i have tried using the dax to get the result but it seems to return the orders created for that day
For column
"
Solved! Go to Solution.
Hi @Anonymous ,
Based on your description, you can create a calculated table and a measure as follows.
a calculated table
overdue_new =
CALENDAR (
MIN ( 'countofoverdue'[order date created date] ),
MAX ( 'countofoverdue'[order completed date] )
)
a measure
countif =
VAR x1 =
CROSSJOIN ( 'countofoverdue', 'overdue_new' )
RETURN
COUNTX (
FILTER (
x1,
[Date] >= [order date created date] + 2
&& [Date] < [order completed date]
),
[Order serial]
) + 0
Result:
Hope that's what you were looking for.
Best Regards,
Yuna
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous ,
Based on your description, you can create a calculated table and a measure as follows.
a calculated table
overdue_new =
CALENDAR (
MIN ( 'countofoverdue'[order date created date] ),
MAX ( 'countofoverdue'[order completed date] )
)
a measure
countif =
VAR x1 =
CROSSJOIN ( 'countofoverdue', 'overdue_new' )
RETURN
COUNTX (
FILTER (
x1,
[Date] >= [order date created date] + 2
&& [Date] < [order completed date]
),
[Order serial]
) + 0
Result:
Hope that's what you were looking for.
Best Regards,
Yuna
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
your solution is lean and neat compared to the solution i came up with 🤣
@Anonymous , The information you have provided is not making the problem clear to me. Can you please explain with an example.
Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.
Appreciate your Kudos.
You can trying rolling measure with help from date tbale
Rolling 30 day = CALCULATE(sum(Sales[Sales Amount]),DATESINPERIOD('Date'[Date],max('Date'[Date]),-30,Day))
thanks for speedy response
basically; i'm trying to make the overdue orders continue to roll until the that its completed
the condition is if the order is created on N date it should be completed by N+2; otherwise it will be overdue;
Trying to make a area chart to show the trend of daily overdues
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
110 | |
94 | |
81 | |
66 | |
58 |
User | Count |
---|---|
151 | |
121 | |
104 | |
87 | |
67 |