Forum Discussion
Finding value based on row header and a column value
- 4 years ago
HI Anonymous
Here is the sample file with the solution based on unpivotted table https://we.tl/t-mPd68FBRV3Tub Factor = MAXX ( FILTER ( RELATEDTABLE ( 'Material List' ), 'Material List'[Fleet Size] = 'Daily Production'[Fleet Size] ), 'Material List'[Value] )
Hi Anonymous
If you you unpivotted the table then you are on the right track. Why aren't you able to create a relationship? Still you can match even without a relationship bu the relationship would be much easier and faster. Still not clear what exactly are you trying to match and which value are you trying to grap from which table to which table. Cannot fund the Material Type column anywhere in the provided screenshots. Also what exactly is the Tub Factor? Is it the value that you are trying to calculate?
lease provide a simplified dummy sample data along with the expected results.
Sorry, I mean't Material List, not Material Type. I am unsure how to attach a sameple set, should I attach as an excel or a Power BI?
Just to simplify and elaborate.
I have my main Data "Daily Production" and a table that I need to draw info from "Material List".
I was the tub factor column to first check the Fleet size and match the column, and then return associated value in the row matching the Application. Below in the tub factor column is what should be returned.
| Daily Production | |||
| EIID | Application | Fleet Size | Tub Factor |
| AD4001 | MMO | AD40 | 13.95 |
| AD4001 | GHA | AD40 | 14.55 |
| AD6001 | ZRT | AD60 | 22 |
| AD6002 | MMO | AD60 | 18.5 |
| Material List | |||||||
| Application | AD20 | AD25 | AD30 | AD40 | AD50 | AD60 | RD90 |
| MMO | 10,5 | 13,95 | 18,5 | 31 | |||
| GHA | 10,5 | 14.55 | 19 | 31 | |||
| ZRT | 15 | 22 | 27 | ||||
| BPO | 18 | 30 |
Below is the error I get if I unpivot
- tamerj14 years ago
Community Champion
Anonymous
Better to share PBI sample file. You can share a download link via onedrive, dropbox, weshare, etc..- Anonymous4 years agoNot applicable
See below, let me know if it works. I tried to keep the sample as bare as possible.
https://www.dropbox.com/sh/9mt2v32y4akfirr/AACBdcq_jhtt9jytxju6prpua?dl=0