Forum Discussion

ArchStanton's avatar
ArchStanton
Power Participant
2 years ago
Solved

LastNonBlank Measure not working

Hi,

I have tried to re-open a message that I previously accepted as a solution, it turns out the code doesn't work for all 3 Teams in the pbix file:

 

https://ufile.io/dkhq78t8

 

I have tried using this measure that correctly returns the last non blank value for Team A = 2, B, = 6- but C is 36?

The LastNonBlank Value for Team C is 12 not 36.

 

CALCULATE(
     LASTNONBLANKVALUESheet1[KPI],Sum(Sheet1[KPI])),
     FILTER(
           Sheet1,Sheet1[Area] = "Team A"
     ) )

 

4 Replies

    • ArchStanton's avatar
      ArchStanton
      Power Participant

      Thanks but that doesn't work, I need to apply a Filter on Area as I have many different Team names.

      This is for a Card Visual