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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

Measure for multiplying Measure with a Table

Hi, 

Would really appreciate some help here since I don't find a way to solve this. Please tell me if you need more information than what I tell you down below. 

I have a measure which is showing the amount of consultants ( categorized for each country) for every month. I want to use this measure to multiply with a table that I have created. This table shows the average salary for each countries consultants for every month. 
To summarize: 
number of concultants X Average salary 

This is how the measure is looking: 

CApowerbi_0-1681298652749.png

The numbers shows how many consultants there are for each country for every specific month. I have crossed over with a red marker the companies/countries names. 
Best regards!

8 REPLIES 8
FreemanZ
Super User
Super User

how is your measure defined?

Anonymous
Not applicable

Antal konsulter = COUNTX('Total Forecast', 'Total Forecast'[Emp.no])
 
"Antal konsulter" means amount of consultants. This is the measure that is created. 
 
With this measure combined with "company" and "date" queries I created this: 
CApowerbi_0-1681301142540.png


I want to create something similar but just by showing the "total salary = average salary x amount of cosultants

 
Wilson_
Super User
Super User

Hello,

 

What do you mean by "multiply with a table"? Do you mean you have a table in your data model in the same format and you want to multiple corresponding cells together? If so, that's not possible per se (at least not the same way you would do it in Excel), because a measure is simply a calculation that returns a value, given your initial filter context.

 

It's probably still possible in a different way though, if you're trying to put the result into a visual. However, that would depend on your data model.

 

Can you please clarify if my understanding is correct and provide a pbix file?


----------------------------------
If this post helps, please consider accepting it as the solution to help other members find it quickly. Also, don't forget to hit that thumbs up and subscribe! (Oh, uh, wrong platform?)




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

Proud to be a Super User!





Anonymous
Not applicable

Hi! 

Sorry maybe did not use the right word. With table I mean this : 

CApowerbi_0-1681300135168.png

The word "snittlönekostnad" means "average Salary". So this table I want to multiply with an already created measure that is made in the samy way, but instead of showing the average salary, it shows the amount of consutants. 
So the number of consultants in january (For x country) x Average salary in january (For x country) 

Hope this can help! 

Hello,

 

It likely will not work with your existing measure. When you are adding a calculated column, you have a row context but no filter context; when you create a measure you have a filter context but no row context.

 

  • What's your measure syntax?
  • What's your calculated column syntax?



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

Proud to be a Super User!





Anonymous
Not applicable

Don't really know what to answer you here. Sorry! But this is what I answered to a similar question up above. 
 
Antal konsulter = COUNTX('Total Forecast''Total Forecast'[Emp.no])
 
"Antal konsulter" means amount of consultants. This is the measure that is created. 
 
With this measure combined with "company" and "date" queries I created this: 
CApowerbi_1-1681301335539.png

 


I want to create something similar but just by showing the "total salary = average salary x amount of cosultants

Can you provide a (sample) pbix? It sounds like there are a handful of tables involved.




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

Proud to be a Super User!





Anonymous
Not applicable

This is det dax formula for the measure:
Amount of consultants = 
COUNTX('Total Forecast''Total Forecast'[Emp.no]
But I could maybe just create a new measure but start with the same formula. Ex: 

Total lönekostnad = COUNTX('Total Forecast', 'Total Forecast'[Emp.no]) * 

 COUNTX('Snittlönekostnad','Snittlönekostnad'[Snittlönekostnad])

That gives me this :
 CApowerbi_0-1681373160546.png

Not correct, but maybe I am on the right way. What do you think? 

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.