Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
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.