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.
So I'm trying to re-create the following in Power BI:
SELECT
i.*,
d.[EmployeeID],
d.[LOB]
FROM [dbo].[tblImport] i
LEFT JOIN [dbo].[tblDepartments] d
ON LEFT(i.[Delegate], 4) = d.[EmployeeID]
First, I created a calculated column to get the left 4 characters of the Delegate field, and then the Relationships button to create the relationship. I could not create a relationship because the values in the Delegate field are not unique.
Second, I went to the Query Editor to try to create the LEFT JOIN there. I attempted to add a calculated column to get the left 4 characters of the Delegate field. I received an error. Here is the code I attempted:
Left4 = LEFT('Main Data Source'[Delegate], 4)
What am I doing wrong? Am I attempting something that Power BI was not built to do?
Solved! Go to Solution.
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsRegards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsCovering 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 | |
94 | |
82 | |
66 | |
58 |
User | Count |
---|---|
151 | |
121 | |
104 | |
87 | |
67 |