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
jeroenwmwillems
Advocate I
Advocate I

Compare data from two different sources, without being able to merge the queries.

Hi there,

 

I'm struggling with an issue that seems simple to me, but I haven't been able to solve so far. I was hoping one of you legends could help out.

 

I have two dfifferent data sources:

1. A data source with that has a row for every day of the year and on that row a number of active users on that day.

2. A data source that is more substantial, with a row for every order. One day can have more than 1000 orders. 

Merging the sources at this point would be incorrect, since source 1 has dates in GMT+10 and source 2 has dates and times in GMT+0. After I have edited the data, I change the date format.

 

Now I have two matrixes next to each other. The first is using data only from source 1, with weeks as rows and weekdays as columns, the active users as the value. The second using data from soource 2, weeks as rows, weekdays as columns and the sum of orders as values. 

I would love to create a third matrix, dividing the values in matrix 2 by the values matrix 1, giving me a conversion rate. 

 

Any suggestions how to do this best and in a simple manner without having to change too much?

 

Cheers,

Jeroen

 

2 REPLIES 2
amitchandak
Super User
Super User

Create a common time Dim.

1. Have a truncated date at both sources.

2. Either in GMT +10 make a date GMT_10 -10=GMT 0  or have time dim with two columns, date_GMT_0, DATE_GMT_10,

3. Join this common time dim to both the tables.

4. You can generate time dimension is power BI, if needed

Greg_Deckler
Super User
Super User

Sample data and expected output please. Please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

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.