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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
PaoloCantore
New Member

Create a summary table showing the articles bought by customers

Hello. I have a table in this shape:

CustomerArticleprice
PeterBread4
PeterMilk3
JulieMilk2
PeterCrackers3

 

Where the number of article is fixed (3 in this case bread, milk and crackers) and prices can be different for the same article. Every customer can buy an article only once. I need to create a table like this one where it is easy to check what articles a specific customer bought.

 

CustomerBreadbread priceMilkmilk pricecrackerscrakers price
Peteryes4yes3yes3
Julie  yes2  

 

So leaving the corresponding columns empty where nothing has been bought by a specific person.

Do you know how can I solve this problem with powerBi?

Thanks in advance to anyone that will give suggestion.

Best regards

Paolo

 

1 ACCEPTED SOLUTION
DataInsights
Super User
Super User

@PaoloCantore,

 

This can be achieved with the measures below:

 

Bought = IF ( NOT ISBLANK ( MAX ( FactTable[Article] ) ), "yes" )
Price = MAX ( FactTable[price] )

 

Create matrix (use the measures in Values field well):

 

DataInsights_0-1700848980829.png

 

DataInsights_1-1700848997188.png

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

2 REPLIES 2
PaoloCantore
New Member

Dear Datainsights thank you very much for your precious help!

DataInsights
Super User
Super User

@PaoloCantore,

 

This can be achieved with the measures below:

 

Bought = IF ( NOT ISBLANK ( MAX ( FactTable[Article] ) ), "yes" )
Price = MAX ( FactTable[price] )

 

Create matrix (use the measures in Values field well):

 

DataInsights_0-1700848980829.png

 

DataInsights_1-1700848997188.png

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

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.

Top Solution Authors
Top Kudoed Authors