Data Flow - Window Transformation - NTILE Expression

Wilson, Chris 6 Reputation points
2022-08-03T15:03:37.073+00:00

I'm attempting to assign quartiles to a numeric source data range as it transits a data flow.

I gather that this can be accomplished by using the ntile expression within a window transform.

I'm failing in my attempt to use the documentation provided here to get any success.

This is just a basic attempt to understand the implementation before using it for real application. I have a numeric value in my source dataset, and I want the values within the range to be spread across 4 buckets and defined as such.

Thanks in advance for any assistance with this.

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.
4,553 questions
Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
9,893 questions
{count} votes

1 answer

Sort by: Most helpful
  1. HimanshuSinha-msft 19,386 Reputation points Microsoft Employee
    2022-08-04T22:56:46.303+00:00

    Hello @Wilson, Chris ,
    Thanks for the question and using MS Q&A platform.
    As we understand the ask here is how to use Ntile function in sdata flow , please do let us know if its not accurate.
    Let me start with the fact that I had never used this function before in data flow and you ask did gave me an oppurtunity to dig into this .
    You need to use the 'Window option dataflow and that should do the trick .

    228257-image.png
    You need to set the below fields and it should help .
    228190-image.png

    Mine output looked something like this

    228321-image.png

    Please do let me if you have any queries.
    Thanks
    Himanshu


    • Please don't forget to click on 130616-image.png or upvote 130671-image.png button whenever the information provided helps you. Original posters help the community find answers faster by identifying the correct answer. Here is how
    • Want a reminder to come back and check responses? Here is how to subscribe to a notification
      • If you are interested in joining the VM program and help shape the future of Q&A: Here is how you can be part of Q&A Volunteer Moderators
    1 person found this answer helpful.
    0 comments No comments