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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
ashmitp869
Responsive Resident
Responsive Resident

Need assistance with the PBI Matrix

Hi there

How can I show this in PBI Matrix

ashmitp869_0-1759457061559.png

 



The Logic to consider is in CrewVsRole table

ashmitp869_1-1759457061562.png

 


sample file 
https://github.com/suvechha/samplepbi/blob/main/Mockup%20-%20Copy.pbix

@danextian @Ritaf1983@amitchandak @lbendlin @MFelix @Greg_Deckler 

1 ACCEPTED SOLUTION
danextian
Super User
Super User

Hi @ashmitp869 

 

Please see the attached pbix. 

danextian_0-1759473699880.png

 





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

View solution in original post

6 REPLIES 6
v-dineshya
Community Support
Community Support

Hi @ashmitp869 ,

Thank you for reaching out to the Microsoft Community Forum.

 

Hi @danextian  and @MFelix , Thank you for your prompt responses.

 

Hi @ashmitp869 , Could you please try the proposed solutions shared by @danextian  and @MFelix ?  Let us know if you’re still facing the same issue we’ll be happy to assist you further.

 

Regards,

Dinesh

 

Hi @ashmitp869 ,

We haven’t heard from you on the last response and was just checking back to see if you have a resolution yet. And, if you have any further query do let us know.

 

Regards,

Dinesh

MFelix
Super User
Super User

Hi @ashmitp869 ,

 

Not sure if I got the requirement correct but try to add the followind measure:

Validation = 
SWITCH (
    TRUE (),
    NOT ( ISINSCOPE ( NewRules[Employee Code] ) )
        && SELECTEDVALUE ( NewRules[Crew ID] )
            IN { "C003", "C004" }
                , COUNTROWS (
                  FILTER(  ADDCOLUMNS (
                        VALUES ( NewRules[Employee Code] ),
                        "D", [RuleRightToWorkStatus_AllProjectsNR]
                    ), [D] = "Green"
                ) ),
    
        ISINSCOPE ( NewRules[Employee Code] ),
        [RuleRightToWorkStatus_AllProjectsNR]
    
)

 

Result below and in attach PBIX:

MFelix_0-1759478961249.png

 

Not sure if this is the result you need but let me know if there is any different result you need.

 

 

 


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



ashmitp869
Responsive Resident
Responsive Resident

Thanks for the assistance, the other reply was more appropiate.

danextian
Super User
Super User

Hi @ashmitp869 

 

Please see the attached pbix. 

danextian_0-1759473699880.png

 





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

Thanks for the solution. Much appreciated for your assistance.

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.