We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now
Hello,
I've been trying for a while to resolve this measure. Can you help me?
I want to calculate a measure that estimate the average cost of a "place" for each month et a total of year.
| Janvier | Fevrier | Mars | Avril | Mai | Juin | JUillet | Août | Sept | Oct | TOTAL | |
| Réel | 254 897 | 293 704 | 335 793 | 277 280 | 264 968 | 324 731 | 220 378 | 220 085 | 311 416 | 249 253 | 2752 504 € |
| [81 - Agréments] | 64 | 64 | 64 | 64 | 64 | 64 | 64 | 64 | 68 | 68 | 68 |
| [266 - Coût net /agrément) | 3983 | 4589 | 5247 | 4332 | 4140 | 5074 | 3443 | 3439 | 4580 | 3665 | 40 478 € |
| Agrément (ratio) | 64 | 64 | 64 | 64 | 64 | 64 | 64 | 64 | 68 | 68 | 648 |
| Coût net à la place total | 3982 | 4589 | 5246 | 4332 | 4140 | 5073 | 3443 | 3438 | 4579 | 3665 | 4247 € |
As for now, I show in my report the first 3 lines (in pink). For each month, it works fine but the total is incorrect as I wanted him to divide the total of "charges" by the maximum value of "agrément".
SO I've been trying to have a measure that sum each month (lines in yellow) : it nows calculates an average (by month) instead of a total.
The expected answer is 42 492 €.
What am I missing?
Thank you very much for your answer !!!
Solved! Go to Solution.
Hi @Audrey_ADAPEI35 ,
Add a new measure with the following code:
Coût net à la place total Overall =
SUMX(VALUES(Table[Month]),
[Coût net à la place total]
)
This will pick up the value of your last measure and just sum it across the months
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsThank you very much ! It works! 🙂 Have a great day !
Hi @Audrey_ADAPEI35 ,
Add a new measure with the following code:
Coût net à la place total Overall =
SUMX(VALUES(Table[Month]),
[Coût net à la place total]
)
This will pick up the value of your last measure and just sum it across the months
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsIf you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 53 | |
| 38 | |
| 33 | |
| 16 | |
| 16 |
| User | Count |
|---|---|
| 66 | |
| 63 | |
| 37 | |
| 34 | |
| 22 |