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

Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers. Get Fabric certified for FREE! Learn more

Reply
azaterol
Helper V
Helper V

Show not sold items

Hey all,

in the image below I have a example for you of my problem.

I have two tables, the first is the cusomer Table(A,B,C). 

The second is the sold items Table. That was easy!

The last table I want is the items which a customer didint sell. 

As you can see in the left table, customer A buy Coca Cola, Sprite, and so on... . These items should not shown in the right table("Not sold items"). Only these items which the customer did not buy, like Fanta, Water, Apple, etc. should be shown on the Power BI table.

I need a Measure, I tried everything but I didint figure it out how it can be done.

 

Hope you understand and can help.

 

Thank you all!

 

owww.PNG

 

1 ACCEPTED SOLUTION
v-jayw-msft
Community Support
Community Support

Hi @azaterol ,

 

Create a measure like below:

Measure =
VAR tmp =
    CALCULATETABLE ( VALUES ( 'sold items'[sold items] ) )
RETURN
    IF ( SELECTEDVALUE ( 'not sold items'[not sold items] ) IN tmp, 0, 1 )

 Then add this measure to visual filter and set value = 1.

 

Best Regards,

Jay

Community Support Team _ Jay
If this post helps, then please consider Accept it as the solution
to help the other members find it.

View solution in original post

2 REPLIES 2
v-jayw-msft
Community Support
Community Support

Hi @azaterol ,

 

Create a measure like below:

Measure =
VAR tmp =
    CALCULATETABLE ( VALUES ( 'sold items'[sold items] ) )
RETURN
    IF ( SELECTEDVALUE ( 'not sold items'[not sold items] ) IN tmp, 0, 1 )

 Then add this measure to visual filter and set value = 1.

 

Best Regards,

Jay

Community Support Team _ Jay
If this post helps, then please consider Accept it as the solution
to help the other members find it.
amitchandak
Super User
Super User

@azaterol , You need to have separate item dimension, post that try this 

Assume you have sales measure 

 

if(isblank([sales]),1,blank())

 

Plot this with the item from a separate item dimension

 

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
March PBI video - carousel

Power BI Monthly Update - March 2025

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

March2025 Carousel

Fabric Community Update - March 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors
Top Kudoed Authors