Supplies are limited. Contact info@espc.tech right away to save your spot before the conference sells out.
Get your discountScore big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount
Hi Dax Guru's any help would be highly appreciated.
I'm trying to do a measure to get the date where the sum of the future booking amount is not more than the remaining balance.
I have 4 tables = 2 fact table (Future visits (Future Booking services) and transaction (services that have been billed)) and 2 table (service booking and customer).
They are all related by primary keys and foregn keys.
Here's my measure so far.
Solved! Go to Solution.
Hi @casperlow ,
Have you tried this?
Predicted Over Delivery Date =
VAR remainingBalance = [ROD Remaining Amount]
RETURN
CALCULATE (
MAX ( 'Future Visits'[end_date] ),
FILTER ( 'Future Visits', 'Future Visits'[Bill Amount] < remainingBalance )
)
Best Regards,
Icey
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @casperlow ,
Have you tried this?
Predicted Over Delivery Date =
VAR remainingBalance = [ROD Remaining Amount]
RETURN
CALCULATE (
MAX ( 'Future Visits'[end_date] ),
FILTER ( 'Future Visits', 'Future Visits'[Bill Amount] < remainingBalance )
)
Best Regards,
Icey
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi,
In this kind of case you should use a FILTER to remove the error:
CALCULATE(MAX('Future Visits'[end_date]),FILTER(FutureAmount<'Measure'[ROD Remaining Amount]))
This should work and if it doesn't try switching FutureAmount from variable to SUM('Future Visits'[Bill Amount]).
I hope this post helps to solve your issue and if it does consider accepting it as a solution and giving the post a thumbs up!
My LinkedIn: https://www.linkedin.com/in/n%C3%A4ttiahov-00001/
Proud to be a Super User!
Hi,
Thanks for suggesting that, I've tried the filter funtion but it does not generate a date for a person with multiple different booking dates, it only works for a person that have one booking date.
User | Count |
---|---|
12 | |
11 | |
8 | |
6 | |
6 |
User | Count |
---|---|
25 | |
19 | |
14 | |
10 | |
7 |