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

Prepping for a Fabric certification exam? Join us for a live prep session with exam experts to learn how to pass the exam. Register now.

Reply
Anonymous
Not applicable

Return the date of a table when condition is hitted

Hi, I am new to PowerBi.

Previously I use excel formula to create a table to forecast the 50% & 75% receive rate by Match & Index.

I want to know how can I do the same in PowerBI.

 

I have a list of data like below

SKUsOrdered UnitEst Receive Date
A107/10

A

107/20
B807/25
B107/30

 

I want to show the date in the table when receive rate hit 50% n 70%.

Result:

SKUsOrdered Unit50% date70% date

A

207/107/20
B907/257/25
2 ACCEPTED SOLUTIONS
ryan_mayu
Super User
Super User

@Anonymous 

pls see the attachment below





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

Fowmy
Super User
Super User

@Anonymous 

Use two measures:

50 % = 
var __50 = SUM(Table1[Ordered Unit]) * .5
return
    MINX(
        FILTER(
            ADDCOLUMNS(
                SUMMARIZE( Table1 , Table1[SKUs] , Table1[Est Receive Date] ),
                
                "Cumm" , CALCULATE( SUM(Table1[Ordered Unit]) , FILTER( ALLSELECTED(Table1[Est Receive Date]), Table1[Est Receive Date] <= EARLIER(Table1[Est Receive Date] )))
            ),
            [Cumm] >= __50
        ),
        Table1[Est Receive Date]
    )
70 % = 
var __70 = SUM(Table1[Ordered Unit]) * .7
return
    MINX(
        FILTER(
            ADDCOLUMNS(
                SUMMARIZE( Table1 , Table1[SKUs] , Table1[Est Receive Date] ),
                
                "Cumm" , CALCULATE( SUM(Table1[Ordered Unit]) , FILTER( ALLSELECTED(Table1[Est Receive Date]), Table1[Est Receive Date] <= EARLIER(Table1[Est Receive Date] )))
            ),
            [Cumm] >= __70
        ),
        Table1[Est Receive Date]
    )

Fowmy_0-1626765968434.png

 

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

View solution in original post

2 REPLIES 2
Fowmy
Super User
Super User

@Anonymous 

Use two measures:

50 % = 
var __50 = SUM(Table1[Ordered Unit]) * .5
return
    MINX(
        FILTER(
            ADDCOLUMNS(
                SUMMARIZE( Table1 , Table1[SKUs] , Table1[Est Receive Date] ),
                
                "Cumm" , CALCULATE( SUM(Table1[Ordered Unit]) , FILTER( ALLSELECTED(Table1[Est Receive Date]), Table1[Est Receive Date] <= EARLIER(Table1[Est Receive Date] )))
            ),
            [Cumm] >= __50
        ),
        Table1[Est Receive Date]
    )
70 % = 
var __70 = SUM(Table1[Ordered Unit]) * .7
return
    MINX(
        FILTER(
            ADDCOLUMNS(
                SUMMARIZE( Table1 , Table1[SKUs] , Table1[Est Receive Date] ),
                
                "Cumm" , CALCULATE( SUM(Table1[Ordered Unit]) , FILTER( ALLSELECTED(Table1[Est Receive Date]), Table1[Est Receive Date] <= EARLIER(Table1[Est Receive Date] )))
            ),
            [Cumm] >= __70
        ),
        Table1[Est Receive Date]
    )

Fowmy_0-1626765968434.png

 

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

ryan_mayu
Super User
Super User

@Anonymous 

pls see the attachment below





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Helpful resources

Announcements
May PBI 25 Carousel

Power BI Monthly Update - May 2025

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

Notebook Gallery Carousel1

NEW! Community Notebooks Gallery

Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.

May 2025 Monthly Update

Fabric Community Update - May 2025

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