Skip to main content
Question

How do you pull DISTINCT row values when querying a data model to create a CSV file?

  • Oct 11, 2022 5:02 PM UTC
  • 3 replies
  • 308 views

I've created an action flow (pictured below) and have queried data based on an analysis I've built. When creating an analysis you have the option in the table for Distinct Values however obviously that's not an option in Action Flows. How can I ensure the data I'm pulling is only showing distinct values? image

3 replies

  • Oct 11, 2022 5:30 PM UTC

I solved it. Write DISTINCT in front of the columns when querying the data in step 1

EX: DISTINCT(table.column)


  • Oct 12, 2022 8:28 AM UTC

Hi,

 

Additionally one of the options is:

1) changing data to array (Array agregator)

2) deduplicate module with that mapping (

obraz)

 

Best Regards,

Mateusz Dudek


  • Oct 12, 2022 2:26 PM UTC

Hi,

 

Additionally one of the options is:

1) changing data to array (Array agregator)

2) deduplicate module with that mapping (

obraz)

 

Best Regards,

Mateusz Dudek

Thank you I will try that next time!!