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

For each product, find first month of volume, start plot from that month onwards

Hello,

 

I'm looking for a way to compare product launches. I have a dataset of few hundred products, with sales volumes by month.

 

I want to find a way to show the first month each one sold as "month 1", etc.  That way I can compare trends for new product launches in the past.

 

For example, product A first sold in January, product B first sold in March:

 

ProductvolumeDateMonth
A100January1
A80February2
A75March3
A40April4
B100March1
B90April2
B95June3
B100July4

 

In this way I can plot the product volumes from the date of first volume, even though they sold at different times:

 

dapperscavenger_0-1627041138230.png

 

What would be the best way to go about getting the end result?

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@dapperscavenger , Create a new column like

 


new column =
var _first = eomonth(minx(filter(table,[Product] = earlier([Product])),[Date]),0)
return
datediff(_first, eomonth([date],0), month)

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@dapperscavenger , Create a new column like

 


new column =
var _first = eomonth(minx(filter(table,[Product] = earlier([Product])),[Date]),0)
return
datediff(_first, eomonth([date],0), month)

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Worked like a charm, thank you!

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.