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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
sboobar
Frequent Visitor

First Production Date across Category

I am trying to find the date that first production of any kind (green>0 or red>0) occurred for an item and to assign that date across the category item #. Below is a sample set of my data and a column showing the expected results I hope to get. Please help! 

 

DateItem #GreenRedExpected Results (First Prod Date)
1/1/202310.000.001/3/2023
1/2/202310.000.001/3/2023
1/3/202318.004.001/3/2023
1/4/202313.0075.001/3/2023
1/1/2023219.0044.001/1/2023
1/2/202320.000.001/1/2023
1/3/2023224.0046.001/1/2023
1/1/202330.000.001/2/2023
1/2/2023317.0017.001/2/2023
1 ACCEPTED SOLUTION
FreemanZ
Super User
Super User

hi @sboobar 

try like:

Column =
MINX(
    FILTER(
        TableName,
        TableName[Item]= EARLIER(TableName[Item] )
          &&TableName[Green]<>0
         &&TableName[Red]<>0
    ),
    TableName[Date]
)

View solution in original post

3 REPLIES 3
sboobar
Frequent Visitor

How would this same formula work if the two columns that needed to be <> 0 came from two different tables? For example I still need the first date of production between red or green of an item but those columns are in the two tables {see below}. The tables are already joined by an index in the model

 

TABLE 1   
DateItemGreen 
1/1/202317 
1/2/20231545 
1/3/2023168 
1/1/2023221 
1/2/20232547 
1/3/2023285 
1/1/20233312 
1/2/202330 
1/3/202334 
    
    
TABLE 2   
DateItemRed 
1/1/202315 
1/2/2023164 
1/3/2023112 
1/1/2023278 
1/2/2023292 
1/3/2023241 
1/1/202332 
1/2/202337 
1/3/202337 
sboobar
Frequent Visitor

This worked! Thanks!

FreemanZ
Super User
Super User

hi @sboobar 

try like:

Column =
MINX(
    FILTER(
        TableName,
        TableName[Item]= EARLIER(TableName[Item] )
          &&TableName[Green]<>0
         &&TableName[Red]<>0
    ),
    TableName[Date]
)

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! Prices go up Feb. 11th.

Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Jan NL Carousel

Fabric Community Update - January 2025

Find out what's new and trending in the Fabric community.