Converting a single comma separated row into multiple rows in QuickSight

Hi Team,
Can we have any functionalities available in QuickSight which help us to splitting the comma separated single column into multiple column.

I read some answer on this topic in QuickSight so currently this functionalities are not available in QuickSight.

Thanks & Regards
Biswajit Dash

Hey @Biswajit_1993

Does this help?

1 Like

Hi @Biswajit_1993 - Couple of things,

  1. Is your input string having constant number of commas? If yes, it is easy to use substring and extract the require columns.
  2. If you are looking for specific columns like first and second, same approach can be implement like step -1 and extract the details.
  3. If your number of comma are not constant and it vary, its top ( i guess each row may have different numbers).

Please provide input and expected output so that we can explore the solution.

Regards - San

1 Like

Hi @Sanjeeb2022, @Max I have attached a sample snap created by me for you to understand my query in details but my actually dataset is different with more value present in a single rows.

So any advice from both of you how can I handle in this type of scenarios.

Thanks & Regards
Biswajit Dash

1 Like

Hi @Biswajit_1993 - Thanks for the details but the input is bit confusing, for example for the second row you are looking for the value where the input field do not have that value.

Let’s connect and understand the requirement. Will connect with you offline.

Regards - San

hi @Sanjeeb2022 if you see the first cell the value is like 111,222,333 then in the second cell the value is like 444 in the 3rd 555 and in the 4th 666 so these are the value I want to extract.

Thanks & Regards
Biswajit Dash

1 Like

You can extract one from a calculated field. But you cannot add a row in quicksight.

Calculated fields only create new columns.

This can be accomplished via sql. For instance if you are using presto you can cast it to an array for all columns and then use the unnest function.

1 Like

Hi @Biswajit_1993. Did Max’s reply help? Hope so!

1 Like

Hi @Kristin yes its help me as suggested by @Max & @Sanjeeb2022 I handled the query at database end so now its working fine.

Thanks & Regards
Biswajit Dash

1 Like