Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
power bi abc with cumulative total
04-11-2016
12:44 AM
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.
1 ACCEPTED SOLUTION
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2016
07:00 AM
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"))
1 REPLY 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2016
07:00 AM
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"))

Helpful resources
Recommendations
Subject | Author | Posted | |
---|---|---|---|
04-25-2024 03:48 AM | |||
03-19-2024 04:15 AM | |||
04-04-2024 04:05 AM | |||
06-27-2024 11:24 AM | |||
03-25-2024 03:23 AM |