Skip to main content
Question

Combining fields on different DAC in the same GI column


Forum|alt.badge.img
  • Semi-Pro II
  • 124 replies

Hi! We have a customized table that holds historical sales order data. The goal is to create a GI that displays the historical SO data and current live SO data, where the doc id will show in the same column. Is this something possible to create? 

I’ve tried joining the DAC with business account ID field, but because the document number on the historical table is ‘DocID,’ and on the SOOrder it’s ‘orderNbr.’ the two fields show up in two different columns instead in the same column.

Any suggestions/ideas on if this can be done? Thanks!

5 replies

darylbowman
Captain II
Forum|alt.badge.img+13

Are you saying the historical data has no relationship to the current Orders?


WillH
Varsity II
Forum|alt.badge.img+1
  • Varsity II
  • 58 replies
  • March 18, 2025

You should be able to write a conditional formula into the result column definition, you don’t have to pull columns directly:
Here’s an example of someone working with an IF in the result columns.

 

 


Forum|alt.badge.img
  • Author
  • Semi-Pro II
  • 124 replies
  • March 18, 2025

@darylbowman yes, for now. I think the tables are supposed to link on customer ID and business account ID. But the imported ID for historical orders don’t match the current order’s business ID. The only other field that I see may work would be the inventory ID. 


darylbowman
Captain II
Forum|alt.badge.img+13

I'm not sure how you'll get intelligent and useful data unless you can build a solid relationship.


Forum|alt.badge.img
  • Author
  • Semi-Pro II
  • 124 replies
  • March 20, 2025

Hi ​@darylbowman we understand that to join the tables we would need accurate relationship, and we have thought about updating the Historical Business Account, so it matches the current ones. With that, we will be able to join the tables on this field. 

However, even with a solid relationship, I’m not seeing how it could work because the order Nbr and Doc Id will still show up in two different columns. It’s like if I want to create a GI that shows both SO and Invoice. We could join on the customer ID, but how can we combine the ordernbr and refnbr into the same column?  Is there a way to combine the two so they show up in one? Kind of like a UNION statement? 


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings