Forum Discussion

nguyea25's avatar
nguyea25
Frequent Visitor
6 years ago
Solved

Calculating RTY

Hello!

 

I'm new to the community and new to PowerBI. I'm trying to calculate a rolled throughput yield column but I'm struggling to find the best way to do it. Hopefully I'm providing enough information to solve the problem.

 

The Accept and Reject Qty columns are measures where I use COUNT() to count the number of Accepts or Rejects in a large table then filtered by Process. The Yield column is then just Accept Qty / Total Qty. I'd like to get the RTY column which is the Product of all of the prior Yields. For example Process 3 RTY is 99% x 98% x 95%. 

 

Process NoProcess DescAccept QtyReject QtyYieldRTY
1Process 199199%99%
2Process 298298%97.02%
3Process 395595%92.14%

 

Thanks!

Andrew

  • Hi nguyea25 ,

     

    Would  you please try to use the following measure:

    RTY =
    
    PRODUCTX (
    
        FILTER ( ALL ( 'Table' ), 'Table'[Process No] <= MAX ( 'Table'[Process No] ) ),
    
        [Yield]
    
    )
    

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

     

    Best Regards,

    Dedmon Dai

4 Replies

  • v-deddai1-msft's avatar
    v-deddai1-msft
    Icon for Community Support rankCommunity Support

    Hi nguyea25 ,

     

    Would  you please try to use the following measure:

    RTY =
    
    PRODUCTX (
    
        FILTER ( ALL ( 'Table' ), 'Table'[Process No] <= MAX ( 'Table'[Process No] ) ),
    
        [Yield]
    
    )
    

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

     

    Best Regards,

    Dedmon Dai

    • nguyea25's avatar
      nguyea25
      Frequent Visitor

      Thank you so much! It worked flawlessly.

       

      Regards,

      Andrew

      • Krd603206's avatar
        Krd603206
        Frequent Visitor

        Hi nguyea25

        I've tried to replicate this in my own data but cannot get the qty accept and reject to accumulate as they progress through the process steps, would you mind sharing your count() with filter dax?

    • scisteph's avatar
      scisteph
      Regular Visitor

      I have tried creating the measure suggested, but I am getting all 0.00%. I have no idea what I am doing wrong.