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
Can you explain what you are trying to calculate? share a sample of our data.
jprousseau
5 years agoFrequent Visitor
Here is the link
https://drive.google.com/file/d/1ynCnJY-7k6VBEa286TmvRQYYf-RlS8tH/view?usp=drivesdk