Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
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
I have two tables (1) Opportunity History Stage 1 and (2) Opportunity History All. In both tables there is an Opportunity.Id column which I can use to create a relationship. Also, In the Stage 1 table, I created a column called 'From Stage 1' and entered the text Yes so that I could populate this on the second table so that I know the Opportunity came from that initial batch of opportunities created.
What I need is to create a column in the 'Opportunity History All' table that pulls a "Yes" from the the "From Stage 1" column of the 'Opportunity History Stage 1' table.
Please let me know if you need me to provide further detail or explanation or the columns/tables. Thank you!!
Solved! Go to Solution.
Hi,
For a DAX solution you can use (if there is relationship and OpportunityHistoryAll is in many side):
NewColumn = RELATED(OpportunityHistoryStage1[From Stage 1])
without a relationhip:
NewColumn = LOOKUPVALUE('OpportunityHistoryStage1'[From Stage 1],[Id],[Id])
Plese see screen below.
Thanks
Hi,
For a DAX solution you can use (if there is relationship and OpportunityHistoryAll is in many side):
NewColumn = RELATED(OpportunityHistoryStage1[From Stage 1])
without a relationhip:
NewColumn = LOOKUPVALUE('OpportunityHistoryStage1'[From Stage 1],[Id],[Id])
Plese see screen below.
Thanks
@prakash_gautam This worked perfectly. I used the lookupvalue option and was able to pull in the 'Yes' column.
Thank you so much for your time and help!
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.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 48 | |
| 45 | |
| 41 | |
| 19 | |
| 18 |
| User | Count |
|---|---|
| 69 | |
| 68 | |
| 33 | |
| 33 | |
| 31 |