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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

calculate columns from two tables

Hello everybody,

I have a problem, can you help me?

I have 2 tables; an information and a data table.

I want to calculate a new column like in the example. Is that possible?

Example:

 

articelarticel_statsitic
100
110
101010
101111

 

articelordersales
1005
1104
1010150
10112014

 

solution:

articelordersalesorder_New
100515
110410
1010150-15
10112014-20
5 REPLIES 5
dax
Community Support
Community Support

Hi @Anonymous , 

I am not clear about your requirement, could you please explain the logic of [order_new] column? If possible could you please inform me more detailed information(such as your expected output and your sample data)? Then I will help you more correctly.

Please do mask sensitive data before uploading.

Thanks for your understanding and support.
Best Regards,
Zoe Zhi

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

Anonymous
Not applicable

@camargos88  i´m sorry for that 😉 

 

Sorry.


I try something else:

If the articel has deposited a statistical articel, then the orders should be booked to the statistical articel.

Table 1 states: Article 1010, Article 10 as a statistical article.

That's why I have to add up all the values ​​of article 1010 to article 10

@Anonymous ,

 

So the relations are always 1 to 1 ?

And the values that's giving should be multiplied to -1 ?



Did I answer your question? Mark my post as a solution!

Proud to be a Super User!



Anonymous
Not applicable

No, unfortunately not. There are many articles with the same stored statistical articles.

 
 

Statistic_artikel.jpg

camargos88
Community Champion
Community Champion

@Anonymous ,

 

Sorry, I didn't get the logic for that. Can you explain more ?



Did I answer your question? Mark my post as a solution!

Proud to be a Super User!



Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.