Skip to main content
SUBMITTED

Distinct load on tables

  • August 11, 2023
  • 2 replies
  • 33 views

Bernarddb
TimeXtender Xpert
Forum|alt.badge.img+6

When creating tables based on multiple tables it would be nice to be able to set distinct. Duplicates in a dimension table for instance are ussually not what you require. There are workarounds but it would be nice to have a checkbox to just select distinct loading.

2 replies

rory.smith
TimeXtender Xpert
Forum|alt.badge.img+8
  • TimeXtender Xpert
  • August 11, 2023

Hi,

if you set a primary key on your dimension table and have the default Error setting on violations you will never encounter duplicates. I prefer to know that duplicates appear versus “preventing” them by using distinct.

If you have more complex needs you can create a table based on distinctness: you can either use an Aggregate table without aggregate fields (this is literally a distinct) or use  Add Related Records with a where not exists condition to avoid duplicates.


daniel
TimeXtender Xpert
Forum|alt.badge.img+8
  • TimeXtender Xpert
  • August 17, 2023

Good suggestions @rory.smith . Sometimes it just is the way it is and you get the data the way you get the data. Putting a selection box in tthe settings to be able to set the table to a distinct load would be very helpful in some situations as i'm not a great fan of load the data again to get the results that I want. haveing a work around with te PK options is nice, for now, but in my eyes not a real solution. I could reload the table through a view and materialize that view, but still a work around in my eyes.

I think this feature can improve on the flexibility you have in TX.