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
Anonymous
Not applicable

How to divide data from two different data sources

Hi All, I am hoping you can help me out with the below query.

I have two data sources that look as below;

 

Table1

Table1.PNG

 

Table2

Table2.PNG

 

From 'Table1' I've created the below table;

FirstTable.PNG

 

From 'Table2' I've created the below table;

TotalCalls.PNG

 

Now, I want to divide the sum of dailycount from Table1 with the count of userId per month from Table2.  e.g.   8/173,876 * 100 = 0.01%

 

My goal is to achieve the below table with the percentages of total;

EndResult.PNG

Thanks,

 

2 REPLIES 2
v-xiaotang
Community Support
Community Support

Hi @Anonymous 

Thanks for reaching out to us.

Create a measure, and then set two variables, the first variable to get the total of each name in each month, and the other variable to get the total of the UserID corresponding to the name in each month, and then divide them.
If you need more help, please share the sample file or sample data.

 

 

Best Regards,

Community Support Team _Tang

If this post helps, please consider Accept it as the solution to help the other members find it more quickly.

amitchandak
Super User
Super User

@Anonymous , You can create common dimensions and then you can create a percent measure

 

refer:https://amitchandak.medium.com/power-bi-when-i-asked-you-to-create-common-tables-a-quick-dax-solution-8e3eccb41bda

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.