Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
pwrbiadm
Helper I
Helper I

Calculated Column as Day Counter Until Values Match in Different Rows

I want to create a calculated column which acts as a day counter using Today() - Schedule Date next to the fill_id column until all the status_desc changes to "Finished" where fill_id = parent_fill_id. Please help.

 

 

Lot #fill_idparent_fill_idSchedule Datestatus_desc
TC8003D21A051B-624D-49A0-9BA4-4735092EBF77 10/5/2018 0:00Finished
TC8003A0069E5F2-72D7-4329-9177-E249EC4FBCA1D21A051B-624D-49A0-9BA4-4735092EBF7710/5/2018 0:00Finished
TC8003BADC19E46-1269-4C9F-933A-58076FDE7B1ED21A051B-624D-49A0-9BA4-4735092EBF7710/5/2018 0:00Finished
TC8003CA425A2E9-B5CC-401C-9512-EBF82CC836B4D21A051B-624D-49A0-9BA4-4735092EBF7710/5/2018 0:00Finished
TC8004DD6652BC-623D-44D0-9FD8-C1A2CBCC40F8 10/18/2018 0:00Finished
TC8004A227A83CA-DBAB-4EC3-95FA-D2FADC99583ADD6652BC-623D-44D0-9FD8-C1A2CBCC40F810/19/2018 0:00Finished
TC8004B7E2414D4-B21D-4C59-AA28-B228A89747DEDD6652BC-623D-44D0-9FD8-C1A2CBCC40F810/19/2018 0:00Finished
TC8004C9658A238-9915-454A-B880-A8DD2574D283DD6652BC-623D-44D0-9FD8-C1A2CBCC40F810/19/2018 0:00Finished
TC8005FEEC4480-FF01-4C5E-90F1-3E2F0F15C9F7 12/10/2018 0:00Finished
TC8005ADD65D302-B7E1-4EA0-A026-84EBBB4FC451FEEC4480-FF01-4C5E-90F1-3E2F0F15C9F712/10/2018 0:00Confirmed
TC8005B968479F6-E711-4902-A892-8939ED527332FEEC4480-FF01-4C5E-90F1-3E2F0F15C9F712/10/2018 0:00Confirmed
TC8005C005596CF-E71F-4B92-8326-17196F640CD6FEEC4480-FF01-4C5E-90F1-3E2F0F15C9F712/11/2018 0:00Confirmed
TC8006900F6CA3-ADDA-4305-A589-F8D969779ADD 12/11/2018 0:00Finished
TC8006AFBF5D66F-08C9-4243-963C-BA7034458559900F6CA3-ADDA-4305-A589-F8D969779ADD12/11/2018 0:00Confirmed
TC8006B834EE686-D95A-4A62-881B-206741D4CE10900F6CA3-ADDA-4305-A589-F8D969779ADD12/11/2018 0:00Confirmed
TC8006C018E8252-E72C-4E11-A909-2A698DE9BBE1900F6CA3-ADDA-4305-A589-F8D969779ADD12/11/2018 0:00Confirmed
5 REPLIES 5
Anonymous
Not applicable

See if this gets you in the right direction.  Below is the pbix file where you can see all the steps in Power Query on how I got to that column:

Final PQ Table.png

 

Pbix file:

https://1drv.ms/u/s!AoQIGRpzoxRH-jE5gZW9oBYsLy0r

No it doesn't.

 

To clarify, I want the day counter to continue, say for TC8005 (parent), until the point status_desc for TC8005A, TC8005B and TC8005C (children) turns to "Finished". Once all parent and children turn to "Finished" then day counter should go blank.

Anonymous
Not applicable

Final PQ Table v2.png

 

Think that is what you are talking about.  PBIX is in the same location

Sorry its still not what I want.

Hi @pwrbiadm,

 

If it is convenient, could you share your desired output so that I could understand your scenario better and get the solution.

 

Best  Regards,

Cherry

Community Support Team _ Cherry Gao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.