Forum Discussion
bi_team_ru2
10 years agoFrequent Visitor
change calculating with the selected data
hi! some times ago i`m need calculate the measure "share on cumulative total"(4-th columns on pictures) then i`m don`t selected anyone, all worked correctly (basic share=1), but on selection any f...
- 10 years ago
for other, that has problem with measure
MPop = sum(Population[Population]) MTotalPop = CALCULATE(SUMX('Population';'Population'[Population]);ALLSELECTED('Population')) MPopCumul1 = CALCULATE('Population'[MPop];FILTER(ALLselected('Population');'Population'[MPop]>=MAXx('Population';'Population'[MPop]))) and Measure Share MShare = DIVIDE('Population'[MPop];'Population'[MTotalPop]) MShareCumul1 = CALCULATE('Population'[MPopCumul1]/'Population'[MTotalPop])good luck
bi_team_ru2
10 years agoFrequent Visitor
for other, that has problem with measure
MPop = sum(Population[Population])
MTotalPop = CALCULATE(SUMX('Population';'Population'[Population]);ALLSELECTED('Population'))
MPopCumul1 = CALCULATE('Population'[MPop];FILTER(ALLselected('Population');'Population'[MPop]>=MAXx('Population';'Population'[MPop])))
and Measure Share
MShare = DIVIDE('Population'[MPop];'Population'[MTotalPop])
MShareCumul1 = CALCULATE('Population'[MPopCumul1]/'Population'[MTotalPop])good luck