Forum Discussion

Clint's avatar
Clint
Helper V
5 years ago
Solved

Circular dependency error using switch

Hello,   I have a column chart that tracks the number of projects by what stage gate they are in.  This is a field in my projects table called "CurrentStageGate" and it is not a calculated column. ...
  • richbenmintz's avatar
    5 years ago

    hi Clint,

     

    In Power Query you can create a custom column to use as your order by field

    if [CurrentStageGate] = "Concept" then 1 else if [CurrentStageGate] = "Design" then 2 else if [CurrentStageGate] = "Build" then 3 else if [CurrentStageGate] = "Model" then 4 else if [CurrentStageGate] = "RTS" then 5 else if [CurrentStageGate] = "Ramp" then 6 else if [CurrentStageGate] = "Sustaining" then 7 else -1

     

    Hope this Helps,
    Richard
    Did I answer your question? Mark my post as a solution!
    Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!