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!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi,
I am trying to calculate the Prior Day Total Sales. Tuesday would show Monday Total Sales, Saturday would show Friday Total Sales. Except Sunday would show Friday and Saturday Sales and Monday would show Friday, Saturday and Sunday Sales. I wrote the dax below but it isnt calculating correctly and I have tried using a Billing Date filter but it is incorrect.
Solved! Go to Solution.
I would use the WINDOW function to decide if I should look back to the previous day, the previous two days or the previous three days. Much simpler to implement.
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!