cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper IV
Helper IV

Alternative to SUMMARIZECOLUMNS

Hi, 

Currently, I'm using NewTable, SummarizeColumns to calculate a cummulative yield. 

 

Que: Is there any other method to calculate the "Yield" without using Newtable, SummariseColumns.

 

Will like to achieve the "Yield" calculation using the original table. This way, I can retain fields in the orignal table and add new filters for each fields.

 

In the summarizecolums, the fields are limited to area, line and station. And any new fields that are added to the summarizecolumns impact the way "Yield" is calculated. 

 

 

Yield Roll Table = 
    SUMMARIZECOLUMNS(
        data[Area],
        data[Line],
        data[station],
        "Count of Pass",COUNTROWS(FILTer('data',[test results]="P")),
        "Count of Fail",COUNTROWS(FILTer('data',[test results]="F")),
        "Yield",DIVIDE([CountPass],[CountPass]+[CountFail],1)
        )

New measure

Roll Yeild = PRODUCT([Yield])

2017-08-01 22_55_48-Production Yield Calculation 0424 - phil - Power BI Desktop.png

 

http://community.powerbi.com/t5/Desktop/Production-Yield-Calculation/td-p/163626

 

 

4 REPLIES 4
Highlighted
Microsoft
Microsoft

Re: Alternative to SUMMARIZECOLUMNS

Hi @vincentakatoh,

 

You can still get the desired yield value via creating measures without creating new table using SUMMARIZECOLUMNS.

CountFail = COUNTROWS(FILTER('data', [test results] = ("f")))
CountPass = COUNTROWS(FILTER('data', [test results] = ("p")))
Yield = DIVIDE([CountPass],([CountPass]+[CountFail]),0)

You can directly add measure [YieID] into value area in a matrix. Also, I noticed that above measure are all existing in the pbix file from the link you provided.

 

Regards,
Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Highlighted
Helper IV
Helper IV

Re: Alternative to SUMMARIZECOLUMNS

Hi @v-yulgu-msft

 

The problem is a with the cummulative calcuation. Line 1 Yield is a product of Station 1 and Station 2 yield. 

 

Line1 Yield = S1 yield (66.7%) * S2 Yield (33.3%) = 22.2% (achievable using SummariseColumns). 

 

Nonetheless, if by using a simple measure Line 1 Yield will be a count of all F and P in S1 and S2. 

Highlighted
Microsoft
Microsoft

Re: Alternative to SUMMARIZECOLUMNS

Hi @vincentakatoh,

 

As you need to get the ummulative calcuation via Product function, and we can only add a column inside this function, personally, I think creating a new column to get the Yield first might be a best choice. If you don't wat to create new table via SUMMARIZECOLLUMNs, you could directly create Yield column in source table.

 

Regards,
Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Highlighted
Helper IV
Helper IV

Re: Alternative to SUMMARIZECOLUMNS

Hi @v-yulgu-msft

 

Can advise how to write the DAX (for the cummulative calculation)? How has to be done using M in Query Editor? Will be really great if you can provide the PBI file using below link (contributed by @Phil_Seamark). It has the values using SummariseColumns, the objective is to get the same results using new column (in same table). 

 

http://community.powerbi.com/t5/Desktop/Production-Yield-Calculation/td-p/163626

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Upcoming Events

Experience what’s next for Power BI

See the latest Power BI innovations, updates, and demos from the Microsoft Business Applications Launch Event.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Get Ready for Power BI Dev Camp

Get Ready for Power BI Dev Camp

Mark your calendars and join us for our next Power BI Dev Camp!.

Top Solution Authors
Top Kudoed Authors