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
Hi All,
This sould be an easy fix but I am having an issue with the total variance calculation I am trying to do for price. Essentially the user has two tables to select the current period vs the previous period and then I am running a Price Variation calculation off of it:
(Average Current Price - Average Previous Price) * Current Volume
I want this action done at the item level however the total is off. Below is my equation and a picture of the results. Any idea what I am doing wrong in the calc? It looks like its working at the row level but then is off when I do the total.
Hi @Anonymous
Based on your explanation, I create a sample file and try to reproduce your problem. Unfortunately, it goes wrong.
So can you share more details, or PBI sample file after removing sensitive information better?
Besides, what’s the result you want? Can you mark the result you want on the picture? Because I have little understanding of your words that “I want this action done at the item level”.
Best Regards,
Community Support Team _ Tang
If this post helps, please consider Accept it as the solution to help the other members find it more quickly.
You have to describe what you want the total to be first. If you want the calculation to be done item by item and then the results for all visible items somehow aggregated, then you have to do just that. Your current formula does not do it. On top of that, variables once calculated do not change their values and they are immune to context. Variables do not behave like measures.
If 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.
| User | Count |
|---|---|
| 56 | |
| 40 | |
| 36 | |
| 18 | |
| 18 |
| User | Count |
|---|---|
| 70 | |
| 67 | |
| 38 | |
| 34 | |
| 23 |