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! Request now

Reply
oslosa
Helper I
Helper I

Date of first sales per product

Hi I have a dataset of looking like |Product name|Date|Sales| and I want to find the date of first sales, i.e. the Date for each product corresponding to the first non-zero value. In excel I would display the data in matrix format and use an Index(match)-function, but it is more tricky in the list format of power bi.

 

I am trying something like this, but I am not sure how to make the filter so that the measure runs per product (Product name=Product name is probably not filtering anything):

Launch year =
MAXX (
TOPN ( 1, FILTER ( Table ,[Product name]=[Product name]&&[Net turnover (OC)] <> 0 ),[Date].[Year], ASC ),
[Date].[Year]
)
This retrieves the first non-zero value for the sumtotal, so all products get the same launch year. Can anyone help me get the individual dates per product?
1 ACCEPTED SOLUTION
Anonymous
Not applicable

you could use a calculated column with the following formula:

First Sale Date = minx(filter('Table','Table'[Product]=earlier('Table'[Product]) && 'Table'[Sales]>0),'Table'[Sale Date])

View solution in original post

1 REPLY 1
Anonymous
Not applicable

you could use a calculated column with the following formula:

First Sale Date = minx(filter('Table','Table'[Product]=earlier('Table'[Product]) && 'Table'[Sales]>0),'Table'[Sale Date])

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.