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
I need to calculate the outstanding amount for each week in the last 15 weeks.
The amount is outstanding if entry date <= last day of week and paid date > last day of week.
Can anybody help to write that in DAX?
Lotte 😊
@LotteLaugesen , You can get start/ end of week like this
//Monday start week
Week Start date = 'Date'[Date]+-1*WEEKDAY('Date'[Date],2)+1
Week End date = 'Date'[Date]+ 7-1*WEEKDAY('Date'[Date],2)
//Sunday start week
Week Start date = 'Date'[Date]+-1*WEEKDAY('Date'[Date],1)+1
Week End date = 'Date'[Date]+ 7-1*WEEKDAY('Date'[Date],1)
you can use these days in creation of new column
Thank you, but I was hoping that I could use somthing like this: