Forum Discussion
Measure totals do not return expected values
- 6 years ago
Hi, Anonymous
Based on your description, I created data to reproduce your scenario.
You may create three measures as follows.
AB = SUM('Table'[A])+SUM('Table'[B]) CD = SUM('Table'[C])+SUM('Table'[D]) MinResult = SUMX( 'Table', CALCULATE(MIN([AB],[CD])) )Result:
Best Regards
Allan
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
The information you have provided is not making the problem clear to me. Can you please explain with an example.
refer if you looking for :https://community.powerbi.com/t5/Desktop/SUM-of-AVERAGE/td-p/197013
Appreciate your Kudos.
- Anonymous6 years agoNot applicable
I'll try to explain the issue better this time
I've a measure to return min of two variables. So, let's say for a given country, i have 2 entries, 1 for each state as below. As expected, measure returns the min values for each state (see below). Now, when i show the total value for column - 'Min value' it is showing 5 instead i.e., it is adding the values for B (5) and comparing it with A (6) and returning the minimum value of the total
A B State Country Min value of A,B 1 2 Tx US 1 5 3 Ca US 3 Total 5 - amitchandak6 years agoSuper User
Try like
sumx(summarize(table,table[state],table[country], "_min",min(table[A],table[B])),[_min])- Anonymous6 years agoNot applicable
It is not working.. i tried with sample data and returns the following error