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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
SkinnyPotato
Regular Visitor

Complex Matrix Help

Hello everyone I have a table that looks like 

NAMECourse NamePercent Complete
Person1Course150%
Person1Course220%
Person2Course215%

 I have a matrix where I have the names as the rows and course name as the columns and percent complete as the values. The hard part is I'm trying to create a dax formula that would filter out any name that does not have a value for Course1 while trying not to pivot the original table. So it would filter out person 2 because they never took course 1 but it would still show percentages for course 2 for those who did take course 1.

Here is what my current formula looks like, but this makes it so that it shows Course1 as the only column in the matrix

Filter =
CALCULATE('Table'[Percent-Complete],
    FILTER('Table',
        IF([Course ID] = "Course ID" && ([Percent Complete] <> 0 && NOT(ISBLANK([Percent Complete]))),
            [Percent-Complete]
        )
    )
)
2 REPLIES 2
amitchandak
Super User
Super User

@SkinnyPotato , You can create measures like

 

M1 = countrows(filter(allselected(Table), Table[NAME] = max(Table[Name]) && Table[Course] = "Course1"))

 

M2 = countrows(filter(Values(Table[Name]), not(isblank([M1])) && [M1]>0))

 

M2 is the meausre you need

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

@amitchandak Thankyou, but isn't that just returning the count of records and not the associated percent complete?

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.