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
jpt1228
Responsive Resident
Responsive Resident

Flag for new item or not new item based on months since first sale

Hello, I am working on a model and I need to report on items that have launched in the first 6 months VS items that have launched before the last 6 months.

 

I think the best way is going to be to write an IF statement and return "Y" for an item that has the first sale in the last 6 months from today, and a "N" for any item that launched before that.

 

New Item Flag = IF('ProductDIM',[ITEM] first invoice date is <6 months from today then "Y", Else "N") I know this isn't the correct way to write it but what I am trying to accomplish. Then I can bring this measure in to use as a filter for new items VS not new items.

 

I have a date table, invoice table, product table which are connected.

 

image.png

1 REPLY 1
v-chuncz-msft
Community Support
Community Support

@jpt1228,

 

You may try to use FIRSTNONBLANK Function.

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

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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!

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
Top Kudoed Authors