Forum Discussion

danafowler's avatar
danafowler
Frequent Visitor
9 years ago

New table / query based on existing query

I am trying to create a table that will let me know if a certain fault was fixed/corrected what the % of increase it would be.

 

I am pulling data out of JIRA. Fields I am using for this is.

1. Parts - Generic listing of parts

2. TI - is Total Issues 

3. TU - is Total Units Shipped

4. FPY@shipped = 1-(TI/TU)  - This gives me a First Pass Yield = 80%

 

When I tie all these together I have a chart similar to this

 

Parts                   TI          FPY

Signs                100

Software            75

Doors                50

Cabinet             25

Totals              250                    80.00%

 

TU = 1250

I am trying to get a Value in the FPY column that would be:

Signs - 8%

Software - 6%

Doors - 4%

Cabinet - 2%

How can i achieve this?

I am new to Power BI and not familar with alot of the formulas and how to calculate these.

 

Any help is GREATLY appreciated

 

 

1 Reply

  • v-huizhn-msft's avatar
    v-huizhn-msft
    Microsoft Employee

    Hi danafowler,

     

    In your source table, there are dupliate values in the Parts column, the TI column is aggregated in your chart, right? If it is, please review solution as follows.

    First, please create a measure to calculate sum of TI for each Parts using the formula.

    TI-sum=CALCULATE(SUM(Table[TI]),ALLEXCEPT(Table,Table[Parts]))


    Second, create a another measure FPY.

    FPY=Table[TI-sum]/1250


    Finally, create a table, select the Parts, TI-sum, FPY as value level, you will get the expected result.

    If this is not what you want, could you please share your source table for further analysis.

    Best Regards,
    Angelia