Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

View all the Fabric Data Days sessions on demand. View schedule

Reply
jjkmd
Helper I
Helper I

Use a slicer to find all customers who bought that item on a given day with the other items included

I'd like to use a slicer to show all the customers on a given day who bought a certain product, but include all the other product sales in the total.  ie, select all the ones that contain a value, and not filter out the others.

 

Sample example data

DateCustomerColorItemPayment
1/1/2019JohnRedShirt1
1/1/2019JohnRedShoes3
1/1/2019BettyBlueShirt2
1/1/2019BettyBlueShoes3
1/1/2019BettyBluePants4
1/1/2019MikeBlueShoes3
1/1/2019MikeBluePants4
1/2/2019JohnBlueShirt1
1/2/2019BettyBlueShoes3
1/2/2019BettyBluePants4
1/3/2019PeterBlueShirt2
1/3/2019PeterRedShirt2
1/3/2019JohnRedShoes3
1/3/2019JohnRedPants4

 

So, if I used a slicer with Shirt - Shoes - Pants, and chose "Shirt", the total for 1-1-19 would be all the payments for John and Betty, but not Mike (he didn't buy a shirt on 1-1-19).  Total would be $13, and if I put the name into the visual it would show $6 for John, $7 for betty on this day.

 

ON 1-2 it would include John alone and show $1 etc.

 

AND I could then show a table that looks like this

DateCustomerColorItemPayment
1/1/2019JohnRedShirt1
1/1/2019JohnRedShoes3
1/1/2019BettyBlueShirt2
1/1/2019BettyBlueShoes3
1/1/2019BettyBluePants4
1/2/2019JohnBlueShirt1
1/3/2019PeterBlueShirt2
1/3/2019PeterRedShirt2

 

That shows all the details but only if there was a shirt purchase in there.

 

I saw somewhere months ago about using a slicer on a table that was not linked to the other tables would allow for a slicer to be used this way, but I can't find the post/blog or recreate the syntax from memory.  

 

 

0 REPLIES 0

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.