Forum Discussion
jprousseau
5 years agoFrequent Visitor
Measure not adding correctly
Hi i have measure not tally corectly. Measure = SUMX ( VALUES (data[Contract] ), CALCULATE ( AVERAGE( (data[Premium] ) ) ) ) The premium for the 1st 2 rows must only be added once...
- 5 years ago
Hi jprousseau ,
Try the following measure:
Measure_new1 = var _summarize=SUMMARIZE('data',[Date].[Year],[Date].[Month],"1",[Measure_new]) return IF( HASONEVALUE(data[Date].[Month]),[Measure_new],SUMX(_summarize,[1]))Best Regards,
HenryIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Fowmy
5 years agoSuper User
jprousseau
Try this way:
Measure =
SUMX
(
data,
data[Premium]
)
If you need to average:
Measure =
AVERAGEX
(
data,
data[Premium]
)
- jprousseau5 years agoFrequent Visitor
Get this error
- Fowmy5 years agoSuper User
jprousseau
Can you explain what you are trying to calculate? share a sample of our data.- jprousseau5 years agoFrequent Visitor
Here is the link
https://drive.google.com/file/d/1ynCnJY-7k6VBEa286TmvRQYYf-RlS8tH/view?usp=drivesdk