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.
Hi,
I am pretty new to PBI and data modelling. Instead of using SQL views i tried to join the tables directly in PBI and it is working perfectly. But now I have got the below scenario. In Merge I can select the column or multiple columns for joining but how can i define the below highlighted while merging my tables.
From
dbo.IncidentDimvw I
INNER JOIN dbo.WorkItemDimvw WI
ON I.EntityDimKey = WI.EntityDimKey
LEFT OUTER JOIN
dbo.WorkItemCreatedByUserFactvw
ON dbo.WorkItemCreatedByUserFactvw.WorkItemDimKey = WI.WorkItemDimKey
AND WorkItemCreatedByUserFactvw.CreatedDate =
(
Select Max(CreatedDate) from WorkItemCreatedByUserFactvw where WorkItemDimKey = WI.WorkItemDimKey
)
Solved! Go to Solution.
hi, @Anonymous
You could get by two merge steps as below:
First merge
Step1:
In Merge function, merge WorkItemDimvw table and WorkItemCreatedByUserFactvw table
Step2:
Expand CreatedDate column and then use Group By to get Max(CreatedDate) for each WorkItemDimKey
Second merge
Now merge WorkItemDimvw table and WorkItemCreatedByUserFactvw table by two conditional
dbo.WorkItemCreatedByUserFactvw.WorkItemDimKey = WI.WorkItemDimKey
and Max(CreatedDate) = WorkItemCreatedByUserFactvw.CreatedDate
Best Regards,
Lin
hi, @Anonymous
You could get by two merge steps as below:
First merge
Step1:
In Merge function, merge WorkItemDimvw table and WorkItemCreatedByUserFactvw table
Step2:
Expand CreatedDate column and then use Group By to get Max(CreatedDate) for each WorkItemDimKey
Second merge
Now merge WorkItemDimvw table and WorkItemCreatedByUserFactvw table by two conditional
dbo.WorkItemCreatedByUserFactvw.WorkItemDimKey = WI.WorkItemDimKey
and Max(CreatedDate) = WorkItemCreatedByUserFactvw.CreatedDate
Best Regards,
Lin
Covering 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 | |
99 | |
80 | |
64 | |
58 |
User | Count |
---|---|
148 | |
111 | |
93 | |
84 | |
66 |