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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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