Forum Discussion

texnoi's avatar
texnoi
Regular Visitor
3 years ago
Solved

KPI visualization from excel file

Dear all, I am trying to create a simple training dashboarboard. So far it looks somehow working, but i fail to update the KPI visuals to work properly.  This is how my database looks like...
  • AmiraBedh's avatar
    AmiraBedh
    3 years ago

    I created two measures :

     

    Dynamic Average = 
    SWITCH(
        SELECTEDVALUE('Data v2'[Exercise]),
        "Box Squat", CALCULATE(AVERAGE('Data v2'[Reps3]),'Data v2'[Exercise]="Box Squat"),
         "BG Squat", CALCULATE(AVERAGE('Data v2'[Reps3]),'Data v2'[Exercise]="BG Squat"),
        BLANK()
    )
    

     

    This measure will calculate the average based on the selection. You can populate it with all possibilities.

    For the target I followed the same logic :

    Dynamic Target = 
    SWITCH(
        SELECTEDVALUE('Exercises / Target'[Exercises]),
        "Box Squat", 100,
         "BG Squat", 30,
        BLANK()
    )