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

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

Reply
mike12345262262
Frequent Visitor

Measure to count rows in related table returning all rows, not matched rows

I have a time table with a row for every minute.  My measure is returning count of all rows, not matched rows...   what is wrong???

 

I have a fact table with time keys that only span 4 hours.  My measure....   Minutes = countrows(relatedTable(dTime).  but it returns 1440, the minutes in a day.  I want it to only return the minutes were my fact matches....  the mins in the 4 hour span.  on a table I see 60 mins for all 24 hours, but mt facts only occur dring 4 of those hours, so am looking for 240. 

 

Both tables have a time key that I join on.  my time table is on the one side, my fact is on the many side.  Cross filter direction doesn't seem to effect anything.

 

 

 

 

3 REPLIES 3
Anonymous
Not applicable

Hi @mike12345262262,

Did the above suggestions help with your scenario? if that is the case, you can consider Kudo or Accept the helpful suggestions to help others who faced similar requirements.

If these also don't help, please share more detailed information to help us clarify your scenario to test.

How to Get Your Question Answered Quickly 

Regards,

Xiaoxin Sheng

HoangHugo
Solution Specialist
Solution Specialist

Hi, I think you should change Filter Direct, Fact table to Datetime table

amitchandak
Super User
Super User

@mike12345262262 , the minute table will match with fact table time if that is also in minutes

 

like this column

 

Time in min =  time(Hour([timestamp]) , minute([timestamp]),0)

 

will also depend on datatype of join column

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

Helpful resources

Announcements
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.

Top Kudoed Authors