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.
Hi,
Hi @vincentakatoh,
1. Create a calculated table:
t = SUMMARIZECOLUMNS(
'Data'[Area],
Data[Line],
Data[station],
"CountofPass",COUNTROWS(FILTer('Data',[test results]="P")),
"CountofFail",COUNTROWS(FILTer('Data',[test results]="f")),
"Yield",DIVIDE([CountFnPass],[CountFnTotal],0)
)
2. Create calculated columns in this table:
StationOrder = RIGHT('t'[station],1)
YieldBri = var t1=IF(LOOKUPVALUE('t'[Yield],'t'[Area],'t'[Area],t[Line],t[Line],'t'[StationOrder],'t'[StationOrder]+1)=BLANK(),1,LOOKUPVALUE('t'[Yield],'t'[Area],'t'[Area],t[Line],t[Line],'t'[StationOrder],'t'[StationOrder]+1))
var t2= IF(LOOKUPVALUE('t'[Yield],'t'[Area],'t'[Area],t[Line],t[Line],'t'[StationOrder],'t'[StationOrder]+2)=BLANK(),1,LOOKUPVALUE('t'[Yield],'t'[Area],'t'[Area],t[Line],t[Line],'t'[StationOrder],'t'[StationOrder]+2))
var t3= IF(LOOKUPVALUE('t'[Yield],'t'[Area],'t'[Area],t[Line],t[Line],'t'[StationOrder],'t'[StationOrder]+3)=BLANK(),1,LOOKUPVALUE('t'[Yield],'t'[Area],'t'[Area],t[Line],t[Line],'t'[StationOrder],'t'[StationOrder]+3))
return
SWITCH('t'[StationOrder],1,'t'[Yield]*t1*t2*t3,2,t1*t2*t3,3,t3,4,1)
Multiply = var p1=IF(LOOKUPVALUE('t'[YieldBri],t[Line],t[Line],t[StationOrder],'t'[StationOrder]+1)=BLANK(),1,LOOKUPVALUE('t'[YieldBri],t[Line],t[Line],t[StationOrder],'t'[StationOrder]+1))
var p2=IF(LOOKUPVALUE('t'[YieldBri],t[Line],t[Line],t[StationOrder],'t'[StationOrder]+2)=BLANK(),1,LOOKUPVALUE('t'[YieldBri],t[Line],t[Line],t[StationOrder],'t'[StationOrder]+2))
var p3=IF(LOOKUPVALUE('t'[YieldBri],t[Line],t[Line],t[StationOrder],'t'[StationOrder]+3)=BLANK(),1,LOOKUPVALUE('t'[YieldBri],t[Line],t[Line],t[StationOrder],'t'[StationOrder]+3))
return
't'[YieldBri]*p1*p2*p3
3. Create new table:
Table = UNION(SUMMARIZE(t,'t'[Line],"YieldBri",CALCULATE(MAX('t'[Multiply]),FILTER('t','t'[station]="S1")),"Area",BLANK(),"Station",BLANK(),"CountofFail",BLANK()),SELECTCOLUMNS('t',"Line",'t'[Line],"YieldBri",'t'[YieldBri],"Area",'t'[Area],"Station",'t'[station],"CountofFail",'t'[CountofFail]))
4. Create arelationship based on Line between Table and LinkLine.
5. Use Line and clustered column chart visual to display value from Table.
For more information, see attached .pbix file.
Best Regards,
Qiuyun Yu
Thanks for the detailed response. it is exremely useful for a DAX dummy like me. But I have 3 more questions
1) Wrong values: Yield Bridge Line is giving the returning the wrong values (initial value 3.3% vs 5% and 2nd value 4.9% vs 22%.
See below/attached table XLS vs PBI.
2) Date: Tried to add a column "Date" to "t" table, but received below error. The date column is important.
3) Y-axis: How can i show the % in y-axis (right), Similar to the pareto. Also the last label does not show the 100%.
Hi @vincentakatoh,
1). We select the "Line3" in Line slicer, it's the correct values.
2). As YieldBri calculated column uses LOOKUPVALUE() function to return results, if add a 'data'[date] column in SUMMARIZED() function, it will have multiple records when search use LOOKUPVALUE() which can't be determined. As the final YieldBri multiply each row value, we require LOOKUPVALUE() function. I would suggest you don't use date to filter it.
3) It seems you want to add a secondary Y-axis for the line, you can turn on this feature:
Best Regards,
Qiuyun Yu
Hi @v-qiuyu-msft,
Thanks.
(1) The PBI values are not the same as Excel values that I'm wanted to achieve.
(2) The dates are important. Objective is to have drill down by dates and lines. Was really happy to achieve the Pareto line using 5x measures (keeping drill down functions such as dates and lines). Was hoping to do the same for Yield Bridge line.
(3) Thanks. Got it!
Hi @v-qiuyu-msft,
Apologies. Notice there are formula errors in my original excel. The new formulas maybe easier to calculate.
Appreciate your great help and patience. Really struggling to create the yield bridge chart.
Updated excel
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
110 | |
97 | |
78 | |
63 | |
55 |
User | Count |
---|---|
143 | |
109 | |
89 | |
84 | |
66 |