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
mulla
New Member

Common data fields in two different data sources - how to merge them for the dashboard?

I have a scenario where I am looking at Date and Payment for employees on source. On another sources, I am looking at Date and Employee Clock in time. How do I merge these two sources so I can show one filter option for Date, and both the respective sources are changed.

 

Also, in these sources are other data points I want to merge such as EVENT TYPE, DEPARTMENT, JOB TITLE, EMPLOYEE NAME. All these fields also tie in both the data sources.

 

Two Sources.png

1 REPLY 1
Phil_Seamark
Employee
Employee

Hi @mulla

 

You could try a DAX UNION to create a new calculated table.  I've just picked three columns, but you get the idea....

 

 

 

New Table = UNION 
        (
            SELECTCOLUMNS('Hours and Pay',
                                "Date",'Hours and Pay'[Date],
                                "Department",'Hours and Pay'[Date],
                                "Pay Code",'Hours and Pay'[Pay Code]),
                                
            SELECTCOLUMNS('Time Sheet Detail',
                                "Date",'Time Sheet Detail'[Date],
                                "Department",'Time Sheet Detail'[Date],
                                "Pay Code",'Time Sheet Detail'[Pay Code]
        ))

 


To learn more about DAX visit : aka.ms/practicalDAX

Proud to be a Datanaut!

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.