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

Did you hear? There's a new SQL AI Developer certification (DP-800). Start preparing now and be one of the first to get certified. Register now

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
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.