Skip to main content
Announcements
July 15, NEW Customer Portal: Initial launch will improve how you submit Support Cases. IMPORTANT DETAILS
cancel
Showing results for 
Search instead for 
Did you mean: 
MS90
Creator
Creator

Need to get Count of Fact table in one column and count from 4tables in one column

Screenshot_20230430-143156-464.png

Need to get Count of Fact table  in one column and count from  4tables in one column.

Applied concatenate on four tables but count is getting error and applied link table on Name column of four tables getting data but not showing data dynamically when applied link table on key column of four tables getting incorrect data.

Please find attached sample data.

1 Solution

Accepted Solutions
BrunPierre
Partner - Master
Partner - Master

[Fact Table]:
LOAD *,
Barcode as FT_Barcode
Inline [
Barcode,Name,Dealer
1,Gold,x
2,Gold,Y
3,Silver,z
4,Silver,v
8,Diamond,h
9,Diamond,i
10,Platinum,k
11,Platinum,l ];

[Table ABCD]:
//[Table A]:
LOAD * Inline [
Barcode,Name,Manufacturing Plant
1,Gold,California
2,Gold,California
];

Concatenate([Table ABCD])
[Table B]:
LOAD * Inline [
Barcode,Name,Model
3,Silver,asd
4,Silver,dff
5,Silver,gfhh
];

Concatenate([Table ABCD])
[Table C]:
LOAD * Inline [
Barcode,Name,Shipping
6,Diamond,Canada
7,Diamond,Dubai
8,Diamond,Aus
9,Diamond,UK];

Concatenate([Table ABCD])
[Table D]:
LOAD * Inline [
Barcode,Name,Quantity
10,Platinum,23
11,Platinum,54
];

Concatenate([Fact Table])
LOAD Barcode as ABCD_BarCode,
*
Resident [Table ABCD];

DROP Table [Table ABCD];

BrunPierre_0-1682852579899.png

View solution in original post

3 Replies
BrunPierre
Partner - Master
Partner - Master

[Fact Table]:
LOAD *,
Barcode as FT_Barcode
Inline [
Barcode,Name,Dealer
1,Gold,x
2,Gold,Y
3,Silver,z
4,Silver,v
8,Diamond,h
9,Diamond,i
10,Platinum,k
11,Platinum,l ];

[Table ABCD]:
//[Table A]:
LOAD * Inline [
Barcode,Name,Manufacturing Plant
1,Gold,California
2,Gold,California
];

Concatenate([Table ABCD])
[Table B]:
LOAD * Inline [
Barcode,Name,Model
3,Silver,asd
4,Silver,dff
5,Silver,gfhh
];

Concatenate([Table ABCD])
[Table C]:
LOAD * Inline [
Barcode,Name,Shipping
6,Diamond,Canada
7,Diamond,Dubai
8,Diamond,Aus
9,Diamond,UK];

Concatenate([Table ABCD])
[Table D]:
LOAD * Inline [
Barcode,Name,Quantity
10,Platinum,23
11,Platinum,54
];

Concatenate([Fact Table])
LOAD Barcode as ABCD_BarCode,
*
Resident [Table ABCD];

DROP Table [Table ABCD];

BrunPierre_0-1682852579899.png

MS90
Creator
Creator
Author

Thank you for replying

But in my case column A i.e, key field(Barcode) and column C in all 5tables  there more than 1million records but column b i.e,  field (Name) there are only 4 values i.e,(gold, diamond, silver, platinum)

BrunPierre
Partner - Master
Partner - Master

The actual tables should be used in place of the inline loads.