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
Hi Everyone,
I'm trying to build a table based on 2 existing tables but I need to join to one of the tables using a parameter, I have this code which works from one table:
ClientCodes=SELECTCOLUMNS(FILTER('anallink','anallink'[AG_Type]="C"),"Type",'anallink'[AG_Type],"AC_Code",'anallink'[AC_Code],"PCT",'anallink'[AL_PCT])
I need to bring in another field based on the AL_PCT field, is it possible to do this?
Thanks
Mick
Solved! Go to Solution.
Hi @micklowe ,
According to your description, I made a sample and here is my solution.
I wonder whether I understand your requirement correctly, please follow steps below.
Sample data:
Create a new table as what you wrote.
ClientCodes =
SELECTCOLUMNS (
FILTER ( 'TABLE_A', 'TABLE_A'[AG_TYPE] = "C" ),
"Type", 'TABLE_A'[AG_TYPE],
"AC_CODE", 'TABLE_A'[AC_CODE],
"PCT", 'TABLE_A'[AL_PCT]
)
Then you can establish a relationship between TABLE_B and new table.
Create a calculated column in the new table.
Column =
RELATED ( TABLE_B[OTHER] )
Final output:
I attach my sample below for your reference.
Best Regards,
Community Support Team _ xiaosun
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @micklowe ,
According to your description, I made a sample and here is my solution.
I wonder whether I understand your requirement correctly, please follow steps below.
Sample data:
Create a new table as what you wrote.
ClientCodes =
SELECTCOLUMNS (
FILTER ( 'TABLE_A', 'TABLE_A'[AG_TYPE] = "C" ),
"Type", 'TABLE_A'[AG_TYPE],
"AC_CODE", 'TABLE_A'[AC_CODE],
"PCT", 'TABLE_A'[AL_PCT]
)
Then you can establish a relationship between TABLE_B and new table.
Create a calculated column in the new table.
Column =
RELATED ( TABLE_B[OTHER] )
Final output:
I attach my sample below for your reference.
Best Regards,
Community Support Team _ xiaosun
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
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 |
|---|---|
| 53 | |
| 45 | |
| 44 | |
| 20 | |
| 19 |
| User | Count |
|---|---|
| 73 | |
| 71 | |
| 34 | |
| 33 | |
| 31 |