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

Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers. Get Fabric certified for FREE! Learn more

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
PBIApril_Carousel

Power BI Monthly Update - April 2025

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

Notebook Gallery Carousel1

NEW! Community Notebooks Gallery

Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.

April2025 Carousel

Fabric Community Update - April 2025

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