Power Pivot or Power Query to show all claim lines for a customer with a specific event

brawnystaff

Board Regular
Joined
Aug 9, 2012
Messages
104
Office Version
  1. 365
I have a spreadsheet with multiple claim lines per day for various events taking place per customer.

I am looking for either a Power Query or Power Pivot solution to show all claim lines for only dates where a particular event took place on one of the claim lines.

For example, if customer ID 1111A had event "45456A" take place on 1/1/2012, I want to see all claim lines for 1/1/2012 for that customer. But, if on 4/1/2012 customer 1111A had five claim lines for that day with no events equaled 45456A, then I want none of those claim lines to appear.

Using Excel 365 and tried using a PowerPivot measure to flag rows, but no luck. Any ideas?

See link below for sample spreadsheet. Thanks.

https://drive.google.com/file/d/1oFYw9Z47ZpuGgb6mmwp1qbVcaEedwaOq/view?usp=sharing
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
maybe this helps. This is one way to do it in a normal pivot table, or query table.

Code:
SELECT A.[Date], A.Customer, A.Event, A.[Amt Paid]
FROM [Data$] A
WHERE A.[Date] IN 
(SELECT DISTINCT B.[Date]
FROM [Data$] B
WHERE B.Event = '45456A')
 
Upvote 0

Forum statistics

Threads
1,213,527
Messages
6,114,150
Members
448,552
Latest member
WORKINGWITHNOLEADER

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