Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

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.

Reply
rlhim
Helper I
Helper I

Trying to merge a measure table with a table

Ok, 

I have an absence table and a measure table with the date of the medical certificates that I can't merge in power query I think because it only exist in the Power BI.

Absence table

NameIPDate (mm/dd/yyyy)
April Day168074912/27/2022
April Day16807491/4/2023
April Day16807491/5/2023
April Day16807491/12/2023
April Day16807491/13/2023
April Day16807491/19/2023
April Day16807491/27/2023
Edward Patterson187732111/8/2022
Edward Patterson187732111/9/2022
Edward Patterson187732111/10/2022

Medical certificates measure table

DateIDName
3/16/20232337266Oscar
1/4/20231680749April Day
1/5/20231680749April Day
11/8/20221877321Edward Patterson
11/9/20221877321Edward Patterson
3/22/20232250748Elena
3/23/20232250748Elena

How do i merge this two tables in the way that a new column appears in the first table that indicates if we received a certificate for that absence. Like this:

NameIPDate (mm/dd/yyyy)Certificate
April Day168074912/27/2022 
April Day16807491/4/2023Received
April Day16807491/5/2023Received
April Day16807491/12/2023 
April Day16807491/13/2023 
April Day16807491/19/2023 
April Day16807491/27/2023 
Edward Patterson187732111/8/2022Received
Edward Patterson187732111/9/2022Received
Edward Patterson187732111/10/2022 
2 REPLIES 2
Ashish_Mathur
Super User
Super User

Hi,

You will not be able to do that merge for the reason that you mentioend.  If you have a seperate physical Medical certificates Fact Table then there are multiple way to get to your desired result.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
lbendlin
Super User
Super User

1. create a composite key (Name+Date) in both tables

2. join the tables in the data model with certificate as the dimension and Absence as fact

3. use RELATED in the absence table to pull in the certificate status (via proof of existence)

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.