Hello,
Does anybody know if there is a way to create an iteration with an exit block in DAX?
I want to create a measurement for DSO (Days of Sales Outstanding).
It uses two amounts: accounts receivable (AR) in current month and sales, and it adds the sales amount for each month until it exceeds the amount of accounts receivable.
For example:
- AR is 1000 in April.
- Sales is 500 in April, 300 in March and 400 in February.
In this scenario the measurement should iterate until February.
I have been experimenting with SUMX and SUMMARIZE but it haven't worked out.
If someone has any tip or pointer to a solution i would be very grateful! Have been struggling with this for a long time!
Cheers!
Does anybody know if there is a way to create an iteration with an exit block in DAX?
I want to create a measurement for DSO (Days of Sales Outstanding).
It uses two amounts: accounts receivable (AR) in current month and sales, and it adds the sales amount for each month until it exceeds the amount of accounts receivable.
For example:
- AR is 1000 in April.
- Sales is 500 in April, 300 in March and 400 in February.
In this scenario the measurement should iterate until February.
I have been experimenting with SUMX and SUMMARIZE but it haven't worked out.
If someone has any tip or pointer to a solution i would be very grateful! Have been struggling with this for a long time!
Cheers!