Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
Hi Power Users,
I have a excel formula that does what i need , but now to translate that to work in Power Bi has been a nightmare.
I tried to google for answers but no luck. Okay so hopefully my table and explenation will make sense. I have the fields (Id , Parent Id, Summary) , So the Id field wil always be unique, but the parent Id field can have multiple "numbers" that points to the Id field (see Id 3) , the summary field is description of Id and Parent Id (Where Id will be the Main info , and Parent Id the more detailed info. My question is I need to return the summary of the Id where the Parent Id matches the Id and not the summary value of the Parent Id "the more detailed part". My excel formula I use that works is - =INDEX(C:C,MATCH(B:B,A:A,0))
Thanks in advance
| Id | Parent Id | Summary | What I Need |
| 1 | 1 | A | A |
| 2 | 2 | B | B |
| 3 | 3 | C | C |
| 4 | 3 | C "and info of C" | C |
| 5 | 5 | E | E |
| 6 | 6 | F | F |
| 7 | 11 | G | #N/A |
| 8 | 12 | H | #N/A |
| 9 | 13 | I | #N/A |
| 10 | 14 | J | #N/A |
Solved! Go to Solution.
How about a column formula such as:
Parent Summary = LOOKUPVALUE ( [Summary], Table1[Id], Table1[Parent Id] )
How about a column formula such as:
Parent Summary = LOOKUPVALUE ( [Summary], Table1[Id], Table1[Parent Id] )
If I do that it doesnt want to accept the last column value.
ParentSummary = LOOKUPVALUE (Top30ParentSum[summary], Top30ParentSum[Id], Top30ParentSum[parent.id])
"A single value for column 'parent.id' in table Top30parentsum' cannot be determined. This can happen when a measure formula refers to a column that contains many values without specifying an aggregation......"
Not sure if this would help
Sorry for the late reply , Thanks again for the solution , I tried the lookupvalue before but as a measure.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.
| User | Count |
|---|---|
| 47 | |
| 44 | |
| 40 | |
| 20 | |
| 15 |
| User | Count |
|---|---|
| 70 | |
| 67 | |
| 32 | |
| 27 | |
| 25 |