Forum Discussion
KPI visualization from excel file
- 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() )
Dear AmiraBedh,
The visual i am strugling with is the KPI Visual.
What i am trying to do is to have a dynamic visual that changes KPI based on chosen variable (in my case table showing different exercises).
So when i add a filter (Show me all entries from August 2023) and compare with the target (90) i am not getting the correct visual.
Target is 90. Reached is 70. KPI Visual shows this:
Thank you very much for your help!
Warm regards,
Texnoi
I can't find any visual with the one you are sharing :
What i am trying to do is to have a dynamic visual that changes KPI based on chosen variable (in my case table showing different exercises)
Can you provide an example of the 2 selections and the KPIs you want to show ?
- texnoi3 years agoRegular Visitor
It is the small KPI visual. It must show the same as the table on the left.
For example: Target for Box Squat is 100. It should be showed in the KPI visual when the exercise picked from the filter to the right.- AmiraBedh3 years agoSuper User
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() )- texnoi3 years agoRegular Visitor
Thank you it did help! What if i want to combine values from 3 databases:
For example just for the box squat: I want to combine Reps1+reps2+Reps3+Reps4+Reps5 so that i use their data as well. Is it still the Dynamic Range command i need?Dynamic Average = SWITCH( SELECTEDVALUE('Data v2'[Exercise]), "Box Squat", CALCULATE(AVERAGE('Data v2'[Reps1]),'Data v2'[Exercise]="Box Squat") "Box Squat", CALCULATE(AVERAGE('Data v2'[Reps2]),'Data v2'[Exercise]="Box Squat") "Box Squat", CALCULATE(AVERAGE('Data v2'[Reps3]),'Data v2'[Exercise]="Box Squat"), "Box Squat", CALCULATE(AVERAGE('Data v2'[Reps4]),'Data v2'[Exercise]="Box Squat"), BLANK() )