Dynamically Select Columns to Partition by in a Window Activity for an Azure Synapse Data Flow

Joshua 20 Reputation points
2024-09-04T20:43:15.92+00:00

I have an Azure Synapse Analytics Data Flow and am using a Window activity to add a column to show the number of rows with duplicated values for a certain column.

I have no problem with any of my other dataflow expression builder expressions, but in the "Over" section of the window activity's settings, when selecting the columns to "partition-by" (how Microsoft says this setting works https://learn.microsoft.com/en-us/azure/data-factory/data-flow-window) I can't dynamically select the column name using the expression:

byName('col1')

I get an error saying this column can't be found. But I've used that exact expression on multiple different dataflow activities and have never had an issue with this expression's ability to select a column dynamically.

Is there something I'm missing. I would just like to, for the window activity in a synapse dataflow, dynamically select the column(s) to partition by.

Azure Synapse Analytics
Azure Synapse Analytics
An Azure analytics service that brings together data integration, enterprise data warehousing, and big data analytics. Previously known as Azure SQL Data Warehouse.
5,373 questions
{count} votes

1 answer

Sort by: Most helpful
  1. AnnuKumari-MSFT 34,556 Reputation points Microsoft Employee Moderator
    2024-09-07T07:19:56.0233333+00:00

    Hi Joshua ,

    Thankyou for sharing the screenshots for the above issue you are facing. It seems you have not specified the column name in the sort tab to order by the column. It is must have property . Kindly provide a column name in sort tab and see if it works.

    Hope it works. Thankyou


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.