Forum Discussion

pwnagele's avatar
pwnagele
New Member
8 years ago
Solved

Trying to recreate pivot table in Power Bi- Help

Hello,

 

I am trying to recreate a pivot table in power bi, but I'm having an issue.  Below a sample of the data that I'm uploading to Power BI

 

Shipment RefWeekLaneVolume
H162022561A-B2
47112727361A-C3
43960109191A-B6
43959991891A-B3
43960678812A-B5
H0501892022A-B9
43958458662A-C3
6175186513A-B2
6175185123A-B5
30501158364A-B3
H0501958114A-C4
47112699494A-B9

 

And I want to create a new table that will organize the data like this:

 

WeekLaneVolume
1A-B11
1A-C3
2A-B14
2A-C3
3A-B7
4A-B12
4A-C4

 

I'm new to Power BI and haven't been able to find a solution, so any help would be greatly appreciated!

 

  • Hi pwnagele,

     

    You can create a table with this following formula ( I called my table data):

     

    Table = SUMMARIZE(Data,Data[Week],Data[Lane], "Volume",SUM(Data[Volume]))

    Then you can filter your week column in ascending....

    Hope it helps....

     

    Ninter

3 Replies

  • Hi pwnagele,

     

    You can create a table with this following formula ( I called my table data):

     

    Table = SUMMARIZE(Data,Data[Week],Data[Lane], "Volume",SUM(Data[Volume]))

    Then you can filter your week column in ascending....

    Hope it helps....

     

    Ninter

  • Hi,

     

    Select the Table visual.  Drag Week and Lane to the Values section.  Write this measure

     

    =SUM(Data[Volume])

     

    Hope this helps