Forum Discussion
Create new table based on calculations between columns from two different columns
- Anonymous9 years ago
Hi,
If you first create a new column in Table2 named Type= Related(Table1[Type]).
Then you can create a new calculated table with the following dax code:
NewTable = SUMMARIZE (
Table2;
Table2[ProjNum];
"Value_Score_Multiplied"; CALCULATE ( VALUES ( Table2[Value] ); FILTER ( Table2; Table2[Type] = "A" ) )
* (
CALCULATE ( VALUES ( Table2[Value] ); FILTER ( 'Table2'; Table2[Type] = "B" ) )
+ CALCULATE ( VALUES ( 'Table2'[Value] ); FILTER ( Table2; Table2[Type] = "C" ) )
)
)Br,
Magnus
Thank you Magnus, we missed a bracket. You are our hero! We managed! We would have never succeeded on our own. Thank you so much! I do not know how but if I could ever help you.. ;)
Hi Nathan_powerbi,
Great to hear the problem got resolved! Could you accept the helpful reply as solution to help others who may have similar issue easily find the answer and close this thread?:smileyhappy:
Regards
- Nathan_powerbi9 years agoFrequent Visitor
Thanks again! I just did! You are the man!