Forum Discussion
Create a Calculated Column from Different Tables
- 10 years ago
Based on my understanding, it depends on the relationship.
If 1:1, below formula should work.
calculated column = table1[X] - RELATED ( table2[Y] )
If 1:many, the following formula should work.
calculated column = oneTable[X] - CALCULATE ( SUM ( manyTable[Y] ), ALLEXCEPT ( manyTable, Table10[linkedCol] ) )
Based on my understanding, it depends on the relationship.
If 1:1, below formula should work.
calculated column = table1[X] - RELATED ( table2[Y] )
If 1:many, the following formula should work.
calculated column =
oneTable[X]
- CALCULATE ( SUM ( manyTable[Y] ), ALLEXCEPT ( manyTable, Table10[linkedCol] ) )Hi,
I am new to Power BI . Can I use data in tables to calculate more data?
My example is: I have Forecasted Product sales for 2 weeks. Prod 1, 100 units, Prod 2, 200 units.
I have a table with the Sales Mix % by Week, Week 1, 75%, week 2, 25%
Can I calculate out these to two table to create a new table with forecasted sales by week.
eg
Week1, Prod1, 75 units
Week2, Prod1, 25 units
Week1, Prod2, 150 units
Week2, Prod2, 50 units
I am calculating this in excel and then loading to power BI.
Thanks
Sam
- Ashish_Mathur8 years agoSuper User