Forum Discussion

MADI_IDRIS's avatar
MADI_IDRIS
Frequent Visitor
8 years ago
Solved

Create New Table and Column from existing Table with filters

Hi Community,

 

I am very new to Power Bi. I am trying to create a new table from existing table and add additional column from the new table?

I have tried summarizecolumn with filter but the results is not really what I expected as it only give one answer.  Apprecite your help on this.

 

Below is my sample data set.

What I want to do is to create a new table by selecting

 1) "Voice" on SERVICETYPE column and

 2) "New" fon SEGMENT column

I also want my  Network Type i.e Local, Onnet and IDD become header for volume. The result should be something like below.

 

STAT CYCLEDIVISIONREGIONSERVICE TYPESEGMENTIDDLocalOnnet
31/5/2018MarketingCentralVoiceNew2783659812052
31/5/2018MarketingNorthernVoiceNew1566912233
31/5/2018MarketingSouthernVoiceNew763117374786
31/5/2018SalesCentralVoiceNew13153253912200
31/5/2018SalesNorthernVoiceNew148136004110
31/5/2018SalesSouthernVoiceNew623159246703
30/6/2018MarketingCentralVoiceNew3083545711374
30/6/2018MarketingNorthernVoiceNew3580802046
30/6/2018MarketingSouthernVoiceNew271116104428
30/6/2018SalesCentralVoiceNew16103070111716
30/6/2018SalesNorthernVoiceNew 120022863

30/6/2018

SalesSouthernVoiceNew41814787

5632

 

 

Could anyone help?

Thanks.

Madi

  • Anonymous's avatar
    Anonymous
    8 years ago

    Hi MADI_IDRIS,

     

    This can be achinved by going to Power Query Editor.

     

    For Creating new table with the same datasource:

    1. Right Click on the Query Souce and duplicate it, then in the another duplicated table you can apply your filter and then click on close and apply. This way you can create new table from the same source with filter that you like.

     

    2. For Making you Network Type column as header you need to use do Pivot in the Power Query Editor.
    refer to this : https://community.powerbi.com/t5/Community-Blog/Pivot-your-Data-using-Power-Query/ba-p/224019

  • Thanks


    Anonymous wrote:

    Hi MADI_IDRIS,

     

    This can be achinved by going to Power Query Editor.

     

    For Creating new table with the same datasource:

    1. Right Click on the Query Souce and duplicate it, then in the another duplicated table you can apply your filter and then click on close and apply. This way you can create new table from the same source with filter that you like.

     

    2. For Making you Network Type column as header you need to use do Pivot in the Power Query Editor.
    refer to this : https://community.powerbi.com/t5/Community-Blog/Pivot-your-Data-using-Power-Query/ba-p/224019


     

    Thanks jayant.. Really Appreciate your fast and exact solution.

2 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi MADI_IDRIS,

     

    This can be achinved by going to Power Query Editor.

     

    For Creating new table with the same datasource:

    1. Right Click on the Query Souce and duplicate it, then in the another duplicated table you can apply your filter and then click on close and apply. This way you can create new table from the same source with filter that you like.

     

    2. For Making you Network Type column as header you need to use do Pivot in the Power Query Editor.
    refer to this : https://community.powerbi.com/t5/Community-Blog/Pivot-your-Data-using-Power-Query/ba-p/224019

    • MADI_IDRIS's avatar
      MADI_IDRIS
      Frequent Visitor

      Thanks


      Anonymous wrote:

      Hi MADI_IDRIS,

       

      This can be achinved by going to Power Query Editor.

       

      For Creating new table with the same datasource:

      1. Right Click on the Query Souce and duplicate it, then in the another duplicated table you can apply your filter and then click on close and apply. This way you can create new table from the same source with filter that you like.

       

      2. For Making you Network Type column as header you need to use do Pivot in the Power Query Editor.
      refer to this : https://community.powerbi.com/t5/Community-Blog/Pivot-your-Data-using-Power-Query/ba-p/224019


       

      Thanks jayant.. Really Appreciate your fast and exact solution.