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

Summerize data from 3 different tables

Hi all,

 

I'm new to powerBI and DAX... and need some help with taking the sum of data from different columns from different tables.

Below you can see a picture what I want (calculated the first 2 lines... sorry for my drawing skills).

 

So the data is grouped on Name and calculates the amount of products that are ordered during a period (filter). We also have the quantity of products available at our distribution centre (BME.Quantity) and a Safety Stock (SS.Quantity). Now i want to summerize the 3 columns. By example the first line (ACN Cream) should be 5568, second line 2266, ...). Below you can also find our DTB Structure (Salesforce combined with some self made tables and our distributres warehouse export). Please help me out 🙂

 

Knipsel1.JPGKnipsel2.JPG

 

THANKS!!!

Dennis

 
 
 
 
 
 
1 ACCEPTED SOLUTION

Hi,

 

You may download my PBI file from here.

 

Hope this helps.

 

Untitled.png


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

View solution in original post

7 REPLIES 7
Ashish_Mathur
Super User
Super User

Hi,

 

If the last 3 columns are measures the, write this measure

 

=[Quantity]+[BME.Quantity]+[SS.Quantity]


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

@Ashish_MathurDon't work (he mentioning "can't find the columns"... this is because it's in 3 different tables I think?

@v-danhe-msftSorry, can't do... is connected with Salesforce and all our data.... if you need some specifiek information about table relations,... don't hesitate to ask! 🙂

 
 

@Ashish_Mathur, @v-danhe-msft

 

I made a copy of the DTB with fictional data:

https://www.dropbox.com/s/vupkg4chx07v5hf/test.pbix?dl=0

 
Hope this helps to figure out the problem Smiley Embarassed
 
 

Hi,

 

You may download my PBI file from here.

 

Hope this helps.

 

Untitled.png


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

Hi @Ashish_Mathur,

 

The problem was in the fact I used columns instead of measures... it works now!!!

THANKS!!!!

 
 

You are welcome.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
v-danhe-msft
Employee
Employee

Hi @dennisdepoorter,

Could you please share some sample file or the pbix file to have a test if possible?

 

Regards,

Daniel He

Community Support Team _ Daniel He
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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.