Matrix / Sumproduct in Power BI

tdeshaye

New Member
Joined
Jan 9, 2016
Messages
7
Hi all

I have a use case I'm been struggling to solve on my own so I come to seek your help!

My power pivot data table looks like that:

productsupplierquantityorder dayreceipt day
Asupplier145MondayWednesday
Bsupplier1456MondayThursday
Csupplier186442MondayWednesday
Dsupplier174TuesdayFriday
Esupplier2784WednesdayFriday
Fsupplier2768TuesdayFriday
Gsupplier2291TuesdaySaturday
Hsupplier275mondayFriday
Isupplier2947WednesdayThursday

<tbody>
</tbody>


And I'd like to have as an output a pivot table which would look like:

DayOrder DayReceive Day
Monday870180
Tuesday11330
Wednesday173186487
Thursday01403
Friday01701
Saturday0291
Sunday00

<tbody>
</tbody>

basically this would the result of SUMPRODUCT (quantity * order_day) and SUMPRODUCT ( quantity * receive_day) but I would be able to apply filters on products and supplier in my pivot table.

thanks a lot for your help

thomas
 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
Hello Thomas,

If I understood correctly, your table should look like the one below.
This will turn out the Pivot table as your output example.

product
supplier
quantity
Type
Weekday
A
supplier1
45
order day
Monday
A
supplier1
45
receipt day
Wednesday
B
supplier1
456
order day
Monday
B
supplier1
456
receipt day
Thursday
C
supplier1
86442
order day
Monday
C
supplier1
86442
receipt day
Wednesday
D
supplier1
74
order day
Tuesday
D
supplier1
74
receipt day
Friday
E
supplier2
784
order day
Wednesday
E
supplier2
784
receipt day
Friday
F
supplier2
768
order day
Tuesday
F
supplier2
768
receipt day
Friday
G
supplier2
291
order day
Tuesday
G
supplier2
291
receipt day
Saturday
H
supplier2
75
order day
monday
H
supplier2
75
receipt day
Friday
I
supplier2
947
order day
Wednesday
I
supplier2
947
receipt day
Thursday

<tbody>
</tbody>

The quickest way to do this, is to use Power Query and Transform -> Unpivot your Order day and Receipt day columns.

Then just use the result table as your scource for the Pivot table.


I hope this was understandable.

Good luck.
 
Upvote 0

Forum statistics

Threads
1,214,651
Messages
6,120,744
Members
448,989
Latest member
mariah3

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top