This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreLevel up your Power BI skills this month - build one visual each week and tell better stories with data! Get started
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 !
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 5 | |
| 4 | |
| 4 | |
| 3 | |
| 3 |
| User | Count |
|---|---|
| 9 | |
| 8 | |
| 6 | |
| 6 | |
| 6 |