I know how to do this with a data transformation. Now, suppose someone without a technical background needs to create a table with two columns: id --> unique_id vendor --> set of distinct values from a column that is included in the original dataset.
1st step : Remove all columns and keep only the Vendors column (done) 2nd step : Generate a list of distinct values. How can I do that? 3rd step : Add a unique id as a new column. Is that also possible?
I was able to perform the first action:
Remove all columns, only keep the Vendors column.

There are two problems here:
Let's solve them one by one.
There are multiple ways to achieve this in Contour. The one I would consider easiest for a less technical user is by using a pivot table. You can select the column you want to find unique values of (in your case vendor) in the
Rowssection of the pivot table configuration and select whatever you want in the Aggregates section (Row countworks just fine).Make sure to switch to pivoted data and your
vendorcolumn will have each of the values exactly once.You already have unique ids from the previous step. You can use any injective function on values from the
vendorcolumn.If you want to have them completely unrelated to the original values you can use the
Expressionboard, create a new column and usemonotonically_increasing_id()function to create new unique values. Bear in mind that these values will change when you change the input (IfVendorAwas mapped to1it doesn't mean it will be mapped to1next time you build the dataset).