Forum Discussion

heathernicole's avatar
heathernicole
Icon for Continued Contributor rankContinued Contributor
8 years ago
Solved

Group by Quantity (cumulative total)

This is really part One of a problem - I'm trying to create an automated "Scheduler" based on Open Qty. Groups.  Basically, every 40,000 (Running Total Column)    Here's my formula for the Schedul...
  • Sean's avatar
    8 years ago

    heathernicole

    Open the Query Editor

    1) Select RunTot column

    2) Add Column tab => Standard drop-down =>select Divide (Integer) => enter 40000

    this would give you a column that will start from 0

    3) select the newly created column => go to Transform tab => again Standard drop down => this time select Add => enter 1

    Does this help?

  • Sean's avatar
    Sean
    8 years ago

    Here's the DAX Column you can use

    DAX Column = "Group " & INT ( DIVIDE ( 'Table'[RunTot], 40000 ) ) + 1

    And the result...

  • Sean's avatar
    Sean
    8 years ago

    heathernicole

    I posted the Query Editor solution before reading your entire question and realizing that RunTot is a DAX created column which you can't access in the Query Editor. After I saw your formula then I posted the DAX solution which basically does the same thing! :smileyhappy: