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
gbarr12345
Post Prodigy
Post Prodigy

Products not sold within certain period

Hi everyone,

 

I'm looking to create a measure that shows the products not sold for a certain period without needing slicers for the period.

 

I have attached a PBIX that has a measure that seems to work but I have no date or period filters within and not sure how to integrate it correctly.

 

Any help would be greatly appreciated!

 

PBIX - https://drive.google.com/file/d/1hGLHOQ8fBKMsMAvRHoNeip4qPEGokiFg/view?usp=drive_link

 

Not Sold = IF(ISBLANK([total_sales]), "Yes", BLANK())
1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@gbarr12345 , Simply sum it using Product dim or column

 

Not Sold = Sumx(Values(Product[Product]), IF(ISBLANK([total_sales]),1, BLANK()) )

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

View solution in original post

3 REPLIES 3
jmerencilla
Helper I
Helper I

Hello! How do I modify this DAX? I have a similar problem where in I need to categorize a product if it has not been sold to a customer in the last 2 years. "New" will be no sales in the last 24 months, "Existing" if the product has been sold to the same customer within 24 months. Thank you!

amitchandak
Super User
Super User

@gbarr12345 , Simply sum it using Product dim or column

 

Not Sold = Sumx(Values(Product[Product]), IF(ISBLANK([total_sales]),1, BLANK()) )

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

Hi Amit,

 

This worked! Thank you so much!

 

gbarr12345_0-1717447468537.png

 

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.