Forum Discussion
Measure not adding correctly
- 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.
Hi jprousseau ,
According to your mistake, I did a test to get the correct result, refer to the following:
Measure_new =
VAR _summarize =
SUMMARIZE ( 'data', [User], [Contract], "1", [Measure] )
RETURN
IF ( HASONEVALUE ( data[User] ), [Measure], SUMX ( _summarize, [1] ) )
Best Regards,
Henry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thanks for your help. The measure works now but when i use it in a month breakdown it is still wrong.
maybe just something small. i have uploaded the pbix again to https://drive.google.com/drive/folders/11BrpV3LsGQGiZNJHG70y4lLHxoEaA2Ku
Thanks
- v-henryk-mstf5 years agoCommunity Support
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.