Forum Discussion

saurabhkul's avatar
saurabhkul
New Member
8 years ago
Solved

Divide values within column to create new column

Hi,   I'm quite new to Power BI. I need help with a piece of logic I used to implement in QlikView. It is a memory-intensive operation, and we were thinking of executing this piece in Power BI. Our...
  • v-yulgu-msft's avatar
    8 years ago

    Hi saurabhkul,

     

    Suppose the source table is named as 'Test4'. Please refer to below steps that are all applied in Query Editor mode.

     

    1. Duplicate table 'Test4'

     

    2. Pivot the duplicated table.

     

    3. Merge the source table with the duplicated one.

     

    4. Expand columns without selecting 'Series_ID'. Then, unpivot them.

     

    5. Right click the 'Attribute' column, choose "Replace values" option.

     

    6. Add a custom column.

     

    7. Remove 'Value' field.

     

    8. Pivot column.

     

    9. Final output.

     

    Best regards,

    Yuliana Gu