Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
cosminc
Post Partisan
Post Partisan

Evolution Index vs previous value

Hi all

 

i have a graph calculated with a measure like this

 

Salesman      Measure        Needed dax expression (divide Measure to previous)

George             90%                    blank

Anna                 30%                      33% (divide 30%/90%)

John                 20%                      66%  (divide 20%/30%)

Michael            10%                      50% (divide 10%/20%)

 

The Salesmen have associated a rank behing and are sorted after it; but not all salesmen are selected so the rank is not consecutive

 

George  5

Anna     6

John     9

Michael  10

 

 

Thanks,

Cosmin

1 ACCEPTED SOLUTION
v-lili6-msft
Community Support
Community Support

HI, @cosminc 

Just try this formula to create a measure

Result = VAR _LASTRANK=CALCULATE(MAX('Table'[rank]),FILTER(ALLSELECTED('Table'),'Table'[rank]<MAX('Table'[rank])) ) RETURN
DIVIDE([Measure],CALCULATE([Measure],FILTER(ALLSELECTED('Table'),'Table'[rank]=_LASTRANK)))

Result:

3.JPG4.JPG

 

here is pbix file, please try it.

 

Best Regards,

Lin

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

6 REPLIES 6
v-lili6-msft
Community Support
Community Support

HI, @cosminc 

Just try this formula to create a measure

Result = VAR _LASTRANK=CALCULATE(MAX('Table'[rank]),FILTER(ALLSELECTED('Table'),'Table'[rank]<MAX('Table'[rank])) ) RETURN
DIVIDE([Measure],CALCULATE([Measure],FILTER(ALLSELECTED('Table'),'Table'[rank]=_LASTRANK)))

Result:

3.JPG4.JPG

 

here is pbix file, please try it.

 

Best Regards,

Lin

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

it works perfect!

Thanks!

Cosmin

Anonymous
Not applicable

in your Rank function use ALLSELECTED instead of ALL

Hi,

Rank used is not a function, is in source

Thanks,

Cosmin

Anonymous
Not applicable

Possible to upload some sample data?

it's a huge base

please try to upload the direct example from the top

Thanks,

Cosmin

 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.