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
baronraghu
Helper III
Helper III

Multiply two tables

Hi All,

 

I am trying to determine work allocation based on the information given in the below tables.

 

Table 1 has three columns 

pngrb db1.PNG

Table 2

pngrb db4.PNG

 

What I want to achieve is when I select like "GA 10.1" on the slicer  then a table must be created which gives how much portion of work will be completed end of each calender Year

 

like

2018      0

2019      0

2020     1001011*10%*(9/12)= 75076

2021     (1001011*10%*(3/12))+(1001011*20%*(9/12))

and so on

 

 

 

 

1 ACCEPTED SOLUTION
Ashish_Mathur
Super User
Super User

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

5 REPLIES 5
Ashish_Mathur
Super User
Super User

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/
Greg_Deckler
Community Champion
Community Champion

Well, I did create an MMULT Quick Measure:

 

https://community.powerbi.com/t5/Quick-Measures-Gallery/MMULT/m-p/630231

 

 



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Can you please help me on how to use it in my query

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.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

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.3

Then 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.

Imke Feldmann (The BIccountant)

If you liked my solution, please give it a thumbs up. And if I did answer your question, please mark this post as a solution. Thanks!

How to integrate M-code into your solution -- How to get your questions answered quickly -- How to provide sample data -- Check out more PBI- learning resources here -- Performance Tipps for M-queries

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.