Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!
good noon!
i need take the cumulative total from the Measure SHARE (desc)
but, then i`m create a new measure Ranking with formula
Ranking = CALCULATE(('Test'[Share]);ALLEXCEPT(Test;Test[Client];Test[Manager]);Test[CSumMon]>=EARLIER(Test[CSumMon]))
the power bi said:
EARLIER / EARLIEST refers to an earlier line context, which does not exist.
and then i`m changed measure to a column, in the result i see the count of element any sorting
how do , then Measure summing with cumulative total?
or how do, then in column i have the share of any elements?
sens yours
Solved! Go to Solution.
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])
and Measure ABC
МABC = if(DIVIDE('Population'[MPopCumul];'Population'[MTotalPop]) <=0,7;"A";if(DIVIDE('Population'[MPopCumul];'Population'[MTotalPop]) <=0,9;"B"; "C"))
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])
and Measure ABC
МABC = if(DIVIDE('Population'[MPopCumul];'Population'[MTotalPop]) <=0,7;"A";if(DIVIDE('Population'[MPopCumul];'Population'[MTotalPop]) <=0,9;"B"; "C"))
Vote for your favorite vizzies from the Power BI World Championship submissions!
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.