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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
rkee10
Frequent Visitor

Dynamic Target in Matrix Visuals

I would like to check on how to do this.

EmployeeTargetTarget ReductionMTTR
Director18%18.00100
+Senior Manager25%58.50234
++Manager12%68.04567
+++Team Lead10%43.50435

 

If you click the DIRECTOR, you will get 18%, and when you click down further, you will see their corresponding TARGET %.  Plus the target reduction would be the target % * MTTR.  This table is developed using MATRIX. Direcotr, Sr Mgr, Mgr, and Team Lead have their own columns in one table.  I hope this information is enough for you guys to check on how to do this.  I tried doing the isfiltered and switch but I couldn't get that result.  Appreciate it!

4 REPLIES 4
hackcrr
Super User
Super User

@rkee10 

I used the following sample data and then created two measures using the following DAX expressions:

hackcrr_0-1722945865061.png

DynamicTarget = 
SWITCH(
    TRUE(),
    ISFILTERED('EmployeeData'[Team Lead]), MAX('EmployeeData'[Target]),
    ISFILTERED('EmployeeData'[Manager]), MAX('EmployeeData'[Target]),
    ISFILTERED('EmployeeData'[Senior Manager]), MAX('EmployeeData'[Target]),
    ISFILTERED('EmployeeData'[Director]), MAX('EmployeeData'[Target]),
    BLANK()
)
TargetReduction = 
VAR CurrentTarget = [DynamicTarget]
RETURN
IF(
    NOT ISBLANK(CurrentTarget),
    CurrentTarget * MAX('EmployeeData'[MTTR]),
    BLANK()
)

The matrix results are as follows:

hackcrr_1-1722945934642.png

 

 

 

If this post helps, then please consider Accept it as the solution and kudos to this post to help the other members find it more quickly

Thank you for this one but based on your example,

John (Director) should have 18% (sample only),

Mary (Sr Mgr), should have 20% while Steve should have 19%

Robert (Mgr), 18%

Alice (team lead) 15%

 

bhanu_gautam
Super User
Super User

@rkee10 , First create a measure

Target Reduction =
   SUMX(
       'YourTable',
       'YourTable'[Target] * 'YourTable'[MTTR]
   )
 
Filter target measure
Filtered Target =
   IF(
       ISFILTERED('YourTable'[Employee]),
       SELECTEDVALUE('YourTable'[Target]),
       BLANK()
   )
 
Drag the Filtered Target measure to the Values field in the matrix.
Drag the Target Reduction measure to the Values field in the matrix.



Did I answer your question? Mark my post as a solution! And Kudos are appreciated

Proud to be a Super User!




LinkedIn






@bhanu  - for the employee, like what I have mentioned, it is coming from different columns.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors