Forum Discussion

blitwak's avatar
blitwak
Helper I
7 years ago
Solved

KPI visualization showing current week values with the ability of change of week

Hi, I want to know if it possible to have a KPI that shows current week value when I open report but when changing week, update their value.   When we open our report take a look just for current ...
  • um_mir's avatar
    7 years ago

    Hi blitwak 

     

    I hope below one of the solutions works for you.

     

    Solution 1 : Create a measure like this

    CurrentWeek1 = LASTNONBLANK(Umbrealla[Sold],SUM(Umbrealla[Sold]))
    Solution 2: Create a index based on the Week number and then create a measure like this
    CurrentWeek2 = 
    VAR CurrentWeekIndex = MAX(Umbrealla[Index])
    RETURN 
    CALCULATE(SUM(Umbrealla[Sold]),Umbrealla[Index]= CurrentWeekIndex)
    Both of the above solution return the same results. See below screen capture.
     
     
     
    Did I answer your question? Mark my post as a solution!
     
    Regards