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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
Rajesh_Kumar_11
Advocate I
Advocate I

How to display the list of products that made no revenue?

How to display the list of products that made no revenue? (If product names and transaction details are maintained in a different table).

List of Products - sales productsList of Products - sales products

List of transaction - sales transactionsList of transaction - sales transactions

Note: It makes no value to stock products that barely generates revenue. To find that we need to display the list of products that generates no revenue in a dashboard.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Sample Data:

List Of Products: (sales products)

product_codeproduct_type
Prod001Own Brand
Prod002Own Brand
Prod003Own Brand
Prod004Own Brand
Prod005Own Brand

 

List Of Sales Transactions: (sales transactions)

product_code

order_datesales_amount
Prod00109 October 2017102
Prod00110 October 2017102
Prod00209 January 2018202
Prod00319 October 2016203
Prod00309 October 2017

203

 

Expected Result:

Already I have the list of years and months and days. If I click "2017" in the years list and "October" in the months list,

 

Unsold Products
Prod002
Prod004
Prod005

This is the required result.

Thanks to @Greg_Deckler ,for sending the link - the way to raise questions to get the answers quickly.

1 ACCEPTED SOLUTION
Rajesh_Kumar_11
Advocate I
Advocate I

😊I have found the solution:

  1. Create a new table in Power BI by going to 'Modeling' > 'New Table'.

  2. In the formula bar, enter the following DAX formula to create a table with all the products that have not been sold on the selected date:

 

 

 

Unsold Products =
FILTER (
'sales products',
NOT (
CONTAINS (
'sales transactions',
'sales transactions'[product_code],
'sales products'[product_code]
)
)
)

 

 

 

This formula uses the FILTER function to filter the 'Products' table based on the condition that each product's Product ID does not appear in the 'Sales Transactions' table for the selected date. The CONTAINS function checks whether the 'Sales Transactions' table contains a record for each product on the selected date.

  • Add the 'Unsold Products' table to your report and display the products that have not been sold on the selected year, month or in any date format.

View solution in original post

3 REPLIES 3
Rajesh_Kumar_11
Advocate I
Advocate I

😊I have found the solution:

  1. Create a new table in Power BI by going to 'Modeling' > 'New Table'.

  2. In the formula bar, enter the following DAX formula to create a table with all the products that have not been sold on the selected date:

 

 

 

Unsold Products =
FILTER (
'sales products',
NOT (
CONTAINS (
'sales transactions',
'sales transactions'[product_code],
'sales products'[product_code]
)
)
)

 

 

 

This formula uses the FILTER function to filter the 'Products' table based on the condition that each product's Product ID does not appear in the 'Sales Transactions' table for the selected date. The CONTAINS function checks whether the 'Sales Transactions' table contains a record for each product on the selected date.

  • Add the 'Unsold Products' table to your report and display the products that have not been sold on the selected year, month or in any date format.
Greg_Deckler
Community Champion
Community Champion

@Rajesh_Kumar_11 Sorry, having trouble following, can you post sample data as text and expected output?
Not really enough information to go on, please first check if your issue is a common issue listed here: https://community.powerbi.com/t5/Community-Blog/Before-You-Post-Read-This/ba-p/1116882

Also, please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490

The most important parts are:
1. Sample data as text, use the table tool in the editing bar
2. Expected output from sample data
3. Explanation in words of how to get from 1. to 2.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Thank you @Greg_Deckler for your response and thanks for sharing links it helped me a lot to understand about the conventions followed in this community. I'm new to this community and I will quickly adapt to this community's environment😊

Helpful resources

Announcements
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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 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