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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
sarah-ortega
New Member

USERELATIONSHIP in a filtered measure

I'm trying to countrows whilst using a userelationship and filter. Not working so far...any ideas? 

 

BTS Actual = calculate(COUNTROWS('Schedule',Schedule[Actual Count],

USERELATIONSHIP(Calendar[Date],'Schedule'[Actual date performed])
Filter('Schedule',Schedule[WO Type]="BTS")
)
1 REPLY 1
technolog
Super User
Super User

Here's how you can adjust your DAX formula to correctly use USERELATIONSHIP in conjunction with FILTER and CALCULATE:

BTS Actual =
CALCULATE(
COUNTROWS('Schedule'),
USERELATIONSHIP(Calendar[Date],'Schedule'[Actual date performed]),
'Schedule'[WO Type] = "BTS"
)

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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