Forum Discussion
Need help with the DAX Calculation
- Anonymous2 years ago
Hi lbendlin,
I was able to break down the working of DAX. Basically, it is performing the running totals to get a distribution of lead time with respect to the average lead time. And this is done by the function ISONORAFTER
1 % Of Arrivals = divide([Stay Number of Arrivals], [1 Total Arrivals])
This makes no sense as it will always return 1
What are you trying to achieve ultimately?
Hi lbendlin,
You're absolutely right, it will always give 1. Actually, this was written by someone a long time back.
I would like to trace how the "Average Lead Time" is 16
Please help me.
Thanks,
Mithilesh
- lbendlin2 years ago
Super User
"Average Lead Time" is neither an average nor will it ever hit 16, at least not based on your sample data.
What is the business problem you are trying to solve?
- Anonymous2 years agoNot applicable
I'm trying to find the "Average Lead Time". As per the Power BI file, I created, it shows ""Average Lead Time" as 16. The Power BI file is in the following location
Thanks,
Mithilesh
- lbendlin2 years ago
Super User
Have you tried a graphical solution? Here is the average lead time based on your raw data, by date, Arrival Indiator and Rooms Occ Nr.
What is the point of the running totals?