Forum Discussion
Measurement SUM
- 4 years ago
Hi Anonymous ,
According to the picture you provided, there is a spelling error in your dax in the picture, HASONEVALUE, which you entered as HASONVALUE, missing an "e".
Did I answer your question? Mark my post as a solution!
Best RegardsLucien
Hi Anonymous
The total issue is very popular, Please check this link then you can find this issue and how to deal with that in detail:
https://www.vahiddm.com/post/why-my-measure-returns-the-wrong-total
If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
LinkedIn: www.linkedin.com/in/vahid-dm/
- Anonymous4 years agoNot applicable
Hello VahidDM
the post really sums up my problem! Thanks for that.
EDIT: I do not know how to use this
AVERAGE Revenue = IF ( HASONEVALUE ( 'Table'[Store] ), AVERAGE ( 'Table'[Revenue] ), SUMX ( SUMMARIZE ( 'Table', 'Table'[Store], "AVERAGEC", AVERAGE ( 'Table'[Revenue] ) ), [AVERAGEC] ) )
in the case of my formula BP in € = average(Worksheet[Price per Item])*average(Plan[Business Plan])
________________________________________________________________________________________________________________
Now I have tried to enter the formular for the measurement, but the formulare wont accept the first part. Could you take a look at it? It think the part after hasonvalue seems wrong.
"Price per item" has a sum symbol, do not know if this is the reason why i cant enter it in the formula? 😞