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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
KHOAND3
New Member

CODE DAX

hello everyone,

I have a problem with my data. Please help me

 

MISCODEMISCODE_MANAGERNOTEKPI_PLAN
D001D001KPI5
D002D001KPI3
D003D001KPI2

 

Miscode D001 is manager of other Miscode (D002, D003). I want to build report for him (D001). 

I use Card and Matrix to visulize data. 

    Matrix: D001 view all members of team => I have done

    Card: D001 view only his KPI. But the value appears sum of all 😞 i don't know how to code measure for this situation. Please help me

 

Capture.PNG

 

Thank

1 REPLY 1
tamerj1
Super User
Super User

Hi @KHOAND3 

Please refer to attched sample file withthe solution. However, it was not clear to me what do you need to do incase you have multiple managers. 

1.png

Manager KPI = 
CALCULATE ( 
    MAX ( Data[KPI_PLAN] ),
    TREATAS ( VALUES ( Data[MISCODE_MANAGER] ), Data[MISCODE] )
)

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.