Forum Discussion
Multiply two tables
- 7 years ago
Well, I did create an MMULT Quick Measure:
https://community.powerbi.com/t5/Quick-Measures-Gallery/MMULT/m-p/630231
- baronraghu7 years agoHelper III
Can you please help me on how to use it in my query
- Greg_Deckler7 years agoCommunity Champion
If you do it in your query it won't be dynamic. If that is OK, ImkeF is probably the best person to help out. You could do the same thing MMULT is doing, transpose the 2nd table adn then merge it.
- ImkeF7 years agoCommunity Champion
I would create an additional column in Table2 where the EffectiveMWP is calculated.
Therefore you first add an Index-column to the table (called "Index" and using the default-settings so that it starts with 0)
Then you add a column with this formula:
[MWP]*0.7 + #"Added Index"[MWP]{[Index]-1}*0.3Then merge this table on column on Column "Round" with table 1 and expand the new column "EffectiveMWP" and multiply it with the Amount from Table.1.
You also want to expand the column "Start_Date" and extract its year-portion for the Year-column.