Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hello everyone,
I'ms struggling in building 3 different measure in Dax Syntax. In fact, I would like to calculate a measure based on the volume into a row divide by the sum of volume of several rows. Here is my usecase :
I have a table of country, brand, volumes and price such as below :
I would like to calculate 3 differents measures.
The first one is the proportion (in volume) of each brand into a specific country.
The second one is the difference of price (at a row level) with the average price at a country level.
The third one is the profit by row divided by the total volume of the country.
Here is the expected table in output :
Can someone help me about this stuff ?
Thank you in advance !
Solved! Go to Solution.
First := DIVIDE(SUM(Test[Volume]),CALCULATE(SUM(Test[Volume]),ALLEXCEPT(Test,Test[Country])),0)
First := DIVIDE(SUM(Test[Volume]),CALCULATE(SUM(Test[Volume]),ALLEXCEPT(Test,Test[Country])),0)
Thank you very much @Anonymous, I will test the measure and let you know about the results.
It works perfectly !!! Thank you very much @Anonymous to make it so easy !
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
10 | |
9 | |
8 | |
8 | |
7 |
User | Count |
---|---|
14 | |
12 | |
11 | |
10 | |
8 |