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.
Hello all,
Below is my dax code for allocating expected budget goals evenly throughout the year. However, my sales data in updated to power bi a day late. This means my allocation is the expected budget for today, but my sales data is for yesterday, not today.
How can I subtract one day from my budget allocation, so allocation matches the sales data
Thank you
Solved! Go to Solution.
How about
VAR __datesV =
DATESBETWEEN (
'Calendar'[Date],
MIN ( 'Sales Actual'[Order Date] ),
MIN ( MAX ( 'Sales Actual'[Order Date] ), TODAY ( ) - 1 )
)
Please try
VAR __datesV =
DATESBETWEEN (
'Calendar'[Date],
MIN ( 'Sales Actual'[Order Date] ),
MAX ( 'Sales Actual'[Order Date] )
)
Hello @tamerj1,
Thanks for the solution. While your solution should work in most cases, it won't work in mine. My report has a few data that spills in from the current day.
Example - the report was initated at 12:00 AM and take 15 mins to create and export to the server. We sometime get sales data in that time for the current date usually less than 100 records but I'd like to exclude them totally hence I cannot use MAX ( 'Sales Actual'[Order Date] ).
Let me know if you have any suggestions.
My thanks,
Dan
How about
VAR __datesV =
DATESBETWEEN (
'Calendar'[Date],
MIN ( 'Sales Actual'[Order Date] ),
MIN ( MAX ( 'Sales Actual'[Order Date] ), TODAY ( ) - 1 )
)