Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request 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.
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 5 | |
| 5 | |
| 4 | |
| 4 | |
| 3 |
| User | Count |
|---|---|
| 24 | |
| 21 | |
| 13 | |
| 10 | |
| 8 |