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!Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.
My Prior Week Calculation is working fine... until I bring segments in.
This is my dax:
Solved! Go to Solution.
Hi @Tihannah,
I've tried recreating your use case usnig my dummy data and it seems that your segment table doesn't have a relationship with your fact/sales table. You can see in the screenshot below that prior week is split into segments
Without the relationship, you'll see equal amounts for each segment by week.
Please see attached pbix for your reference.
Hi @Tihannah,
I've tried recreating your use case usnig my dummy data and it seems that your segment table doesn't have a relationship with your fact/sales table. You can see in the screenshot below that prior week is split into segments
Without the relationship, you'll see equal amounts for each segment by week.
Please see attached pbix for your reference.
My segment table did have a relationship to the fact table, but the attached file helped me figure out where I was going wrong with the week columns and my dax, so thank you!