Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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:
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!
how is your measure defined?
I want to create something similar but just by showing the "total salary = average salary x amount of cosultants
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?)
Proud to be a Super User! | |
Hi!
Sorry maybe did not use the right word. With table I mean this :
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.
Proud to be a Super User! | |
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.
Proud to be a Super User! | |
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]) *
Not correct, but maybe I am on the right way. What do you think?
Check out the July 2025 Power BI update to learn about new features.
User | Count |
---|---|
22 | |
7 | |
6 | |
6 | |
6 |
User | Count |
---|---|
27 | |
10 | |
10 | |
9 | |
6 |