Conditional Column

  • Conditional Column

    Posted by DSC Communities on March 30, 2022 at 11:26 pm
    • prabhat ranjan sharma

      Member

      March 30, 2022 at 11:26 PM

      Hi All,

      I am trying to find a way to solve below problem :
      Lets say I have a table as shown belowĀ 

      Now i am trying to convert this table into below table ( Positive and negative in separate columns but same row )

      Tried multiple conditional custom column but not yet solved .
      Please let me know for any solution to this .

      Regards,
      Prabhat

      ——————————
      prabhat ranjan sharma
      powerbi consultant
      ——————————

    • colin mcilwain

      Member

      March 31, 2022 at 3:10 AM

      Hi
      You can use the conditional column to separate the positive and negative items then pivot this column to aggregate the rows. See below with some additional scenarios to handle summing multiple positive or negative values.

      Result

      ?See attached pbix.

      Regards,
      ?Colin.

      ——————————
      colin mcilwain
      Lead Process Specialist
      ——————————
      ——————————————-

    • prabhat ranjan sharma

      Member

      March 31, 2022 at 4:37 PM

      Thanks Colin !!! 

      It solution has worked for my dataset

      ——————————————-

    DSC Communities replied 4 years ago 1 Member · 0 Replies
  • 0 Replies

Sorry, there were no replies found.

The discussion ‘Conditional Column’ is closed to new replies.

Start of Discussion
0 of 0 replies June 2018
Now

Welcome to our new site!

Here you will find a wealth of information created for peopleĀ  that are on a mission to redefine business models with cloud techinologies, AI, automation, low code / no code applications, data, security & more to compete in the Acceleration Economy!