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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
masplin
Impactful Individual
Impactful Individual

Probably a really dim question about row context on matrix

I have 2 measures

 

Call Count = CALCULATE(COUNTROWS('S&R Data'),'S&R Data'[TRN_LATEST]=1)
Call Count 2 = CALCULATE(COUNTROWS('S&R Data'),'S&R Data'[TRN_LATEST]=1,CallStatus[Call Group]<>"Not Counted")
 
the matrix looks like this which is what I expect
Capture.PNG
However if I now apply a visual filter using filter panel so Call Group = complete I see this which wasn't what i was expecting.   Seems the filter being applied isn't being applied in the total row, but is that because my measure is somehow overriding it with the <>"Not Counted" filter? 
 
Capture.PNG
 
Sure this is DAX 101 so any help appreciated
Mike
1 REPLY 1
masplin
Impactful Individual
Impactful Individual

Duh. Worked it out. Using FILTER retians the context from the visiual

 

Call Count 2 = CALCULATE(COUNTROWS('S&R Data'),
FILTER(
'S&R Data',
'S&R Data'[TRN_LATEST]=1 &&
RELATED(CallStatus[Call Group])<>"Not Counted"
)
)

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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