cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Frequent 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 foreign filter, basic share calculated incorrectly (less then 1).

 for the correct accounts, i need change formula`s of account

 

how me , using IF, 
input  all variants in formula?

 3.gif

4.gif

thanks

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Frequent Visitor

Re: change calculating with the selected data

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

View solution in original post

1 REPLY 1
Highlighted
Frequent Visitor

Re: change calculating with the selected data

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

View solution in original post

Helpful resources

Announcements
Ignite

Microsoft Ignite

This will be a conference that you do not want to miss!

Get Ready for Power BI Dev Camp

Get Ready for Power BI Dev Camp

Don't miss the Power BI Dev Camp this week!

August Community Highlights

Check out a full recap of the month!

August 2020 CYST Challenge

Check out the winners of the recent 'Can You Solve These?' community challenge!

Experience what’s next for Power BI

Join us for an in-depth look at the new Power BI features and capabilities at the free Microsoft Business Applications Launch Event.