Forum Discussion
gomezc73
Helper V
4 years agoCARD in BLANK
Hi, I have a matrix with all values i need, but now I need create some CARDs with totals and others calculations, but I can create calculations (Variations, percentages etc), because the Amou...
- 4 years ago
Hi, gomezc73
You can try the following methods.
Total = CALCULATE ( SUM ( MOVEMENTS[Jan] ), FILTER ( ALLSELECTED ( SUBMENUS ), [CODEMENU] IN { "A002", "A003", "A004", "A005", "A006" } ) )PERCENTAGE = VAR _1 = [Total] VAR _2 = CALCULATE ( SUM ( MOVEMENTS[Jan] ), FILTER ( ALLSELECTED ( SUBMENUS ), [CODEMENU] = "A004" ) ) RETURN DIVIDE ( _1, _2 )Is this the result you were expecting?
Best Regards,
Community Support Team _Charlotte
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Greg_Deckler
Community Champion
4 years agogomezc73 So what is the measure formula?
gomezc73
Helper V
4 years agoHi,
Sorry, i forgot send the measure:
Total = SUMX(Filter(Movements, SELECTEDVALUE(Submenu[CODEMENU]) IN {"A002","A003","A004","A005","A006"}),Movements[Jan]).
I really appreciate your help,
regards
- v-zhangti4 years ago
Community Support
Hi, gomezc73
You can try the following methods.
Total = CALCULATE ( SUM ( MOVEMENTS[Jan] ), FILTER ( ALLSELECTED ( SUBMENUS ), [CODEMENU] IN { "A002", "A003", "A004", "A005", "A006" } ) )PERCENTAGE = VAR _1 = [Total] VAR _2 = CALCULATE ( SUM ( MOVEMENTS[Jan] ), FILTER ( ALLSELECTED ( SUBMENUS ), [CODEMENU] = "A004" ) ) RETURN DIVIDE ( _1, _2 )Is this the result you were expecting?
Best Regards,
Community Support Team _Charlotte
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.