Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Name, Sales
A, 1000
B, 2000
C, 3000
D, 4000
C, 3000
C, 3000
D, 4000
but i want that in data model it should show only unique value
Name Sales
A, 1000
B, 2000
C,3000
D,4000
Hello Vijen,
Distinct prefix does exactly what you want.
LOAD DISTINCT Name, Sales INLINE [
Name, Sales
A,1000
A,1000
B,2000
C,3000
D,4000
];
I hope it solves your problem.
@SerhanKaraer thanks for that but is there another way of doing that ?
Hi,
There are 2 other ways:
LOAD Name, Sales;
LOAD Name, Sales, Count(1) as DummyMeasure GROUP BY Name, Sales;
LOAD * INLINE [
Name, Sales
A,1000
A,1000
B,2000
C,3000
D,4000
];
LOAD Name, Sales WHERE Id = 1;
LOAD Name, Sales, AutoNumber(RecNo(), Name & '|' & Sales) as Id;
LOAD * INLINE [
Name, Sales
A,1000
A,1000
B,2000
C,3000
D,4000
];