PivotTable Rows: show all values from one column without duplicating it from the other column

probexcel

New Member
Joined
Nov 16, 2022
Messages
14
Office Version
  1. 365
Platform
  1. Windows
Hi guys,

I have two tables:
  1. Master Table: contain the list of all customers we need to monitor the sales
  2. Sales Data: we update it every week with year to date sales for the customers in the master table
MASTER TABLE SNIPPET
Customer ID Customer Name
12345Customer 1
12346Customer 2
12347Customer 3

SALES DATA SNIPPET
Customer IDDateUnits
1234501/04/202312
1234501/05/202312
1234501/10/202324
1234501/12/202312
1234601/05/202312
1234601/06/202324
1234601/11/202324

My ideal output would be a pivot table where shows EVERY customer from the Master Table. I created a Power Pivot Connection between the tables, and from that data model I created the Pivot Table.
1673633127626.png


Now, I wanted to show the Customer 3 with Sum of Units as 0. I created a measure value to show 0 when the Sum of Units is blank:
Excel Formula:
=IF(ISBLANK(SUM(SalesData[Num Units])),0,SUM(SalesData[Num Units]))

But the problem with that is that it's now repeating the dates:
1673633749184.png


I don't want to show the dates with no values, I just wanted to show the dates when there's a sale to that Customer.
Is there a way to achieve that?
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.

Forum statistics

Threads
1,214,924
Messages
6,122,294
Members
449,077
Latest member
Rkmenon

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