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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
JNYY
Frequent Visitor

Customers who bought a SPECIFIC product only

Hi all,

 

We are trying to build a report to identify customers who bought a specific product only, and not other products. 

 

Tyring to adapt the solution from a similar thread to our context but we kept hitting into error. Appreciate if anyone can help.

 

https://community.powerbi.com/t5/Desktop/Customers-who-have-NOT-bought-a-product/td-p/199670

 

Measure =
IF (
    HASONEVALUE ( Items[Item] ),
    CALCULATE (
        SUM ( Sales[Sales] ),
        FILTER (
            Sales,
            NOT ( CONTAINS ( Sales, Sales[Item], VALUES ( Items[Item] ) ) )
        )
    ),
    SUM ( Sales[Sales] )
)

 

3 REPLIES 3
Ashish_Mathur
Super User
Super User

Hi,

 

Share your data and also show the expected result there.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Hi,

 

My objective is to create a dynamic measure which returns the sales for customers who bought, say BABYBOY only.

 

Expected result from this snapshot: Return only CustomerNo = 23542 with Sales = 101.03

 

Thank you very much in advance!

 

Capture.PNG

 

Hi,

 

Thank you for clarifying.  Please share a sample dataset to work with.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.