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!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
Hi all,
I'm working on a shipment consolidation model in Power BI and need help building a calculated column that tracks consolidation logic after a reset. I have been banging my head on the wall since early yesterday and can not figure out a workaround that works as expected or doesn't result in a circular depending.
I have a table called Delivery Data YH with the following columns:
My data is already sorted/indexed and I am using row dependency for a large amount of my columns.
I want to analyze a large set of data (hence using PowerBI) and am create columns to mimic what has been used by another coworker within excel who was looking at a much smaller data set. I want to create a column called ConsolidationAfterReset that:
The goal is to evaluate consolidation viability after each reset.
Here is the excel I am trying to mimic:
I have all columns working properly besides the last one. I am using the highlighted row as an example and no matter what I try, I can not get it to work as expected.
Here is what I have in PBI for now --> mostly matches:
| Concat Key(Cust) | AGI Days | Within 7 days? | Consolidated Weight | Days between AGI | Cumulative Days | True Consolidation? | EXPECTED OUTCOME |
| US13-0504242054 | 8/13/2024 | Different Lane | |||||
| US13-0504242054 | 8/14/2024 | Yes | 407.09 | 1 | 1 | Yes | Yes |
| US13-0504242054 | 8/16/2024 | Yes | 26.33 | 2 | 3 | Yes | Yes |
| US13-0504242054 | 8/20/2024 | Yes | 560.47 | 4 | 7 | Yes | Yes |
| US13-0504242054 | 8/26/2024 | Yes | 840.04 | 6 | 13 | Reset | Reset |
| US13-0504242054 | 9/4/2024 | More than 7 days | |||||
| US13-0504242054 | 9/10/2024 | Yes | 1,006.43 | 6 | 6 | Yes | Yes |
| US13-0504242054 | 9/17/2024 | Yes | 587.96 | 7 | 13 | Reset | Reset |
| US13-0504242054 | 9/18/2024 | Yes | 118.51 | 1 | 14 | Reset | Yes |
| US13-0504242054 | 9/25/2024 | Yes | 243.06 | 7 | 21 | Reset | Reset |
| US13-0504242054 | 10/1/2024 | Yes | 340.85 | 6 | 27 | Reset | Yes |
| US13-0504242054 | 10/4/2024 | Yes | 519.15 | 3 | 30 | Reset | Reset |
| US13-0504242054 | 10/14/2024 | More than 7 days | |||||
| US13-0504242054 | 10/23/2024 | More than 7 days | |||||
| US13-0504242054 | 10/24/2024 | Yes | 619.86 | 1 | 1 | Yes | Yes |
| US13-0504242054 | 11/13/2024 | More than 7 days | |||||
| US13-0504242054 | 11/20/2024 | Yes | 723.60 | 7 | 7 | Yes | Yes |
| US13-0504242054 | 11/25/2024 | Yes | 644.76 | 5 | 12 | Reset | Reset |
| US13-0504242054 | 12/3/2024 | More than 7 days | |||||
| US13-0504242054 | 12/9/2024 | Yes | 397.67 | 6 | 6 | Yes | Yes |
| US13-0504242054 | 12/16/2024 | Yes | 348.29 | 7 | 13 | Reset | Reset |
| US13-0504242054 | 12/19/2024 | Yes | 399.47 | 3 | 16 | Reset | Yes |
| US13-0504242054 | 12/19/2024 | Yes | 121.56 | 0 | 16 | Reset | Reset |
| US13-0504242054 | 12/26/2024 | Yes | 517.77 | 7 | 23 | Reset | Yes |
The excel eqn looks like this (with columns replaced with my query columns) --> =IF(CumulativeDays="","",IF(S292="Reset",IF(CombinedWeight<40000,"Yes","Too Heavy"),IF(CumulativeDays>7,"Reset",IF(CombinedWeight<40000,"Yes","Too Heavy")))) where S292 is the circular dependency that is looking at the Consol.AfterReset col. in excel.
How can I correctly implement this logic in a calculated column so that it evaluates rows after each reset, and applies the weight threshold condition only to those?
Any help or DAX suggestions would be greatly appreciated!
Solved! Go to Solution.