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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Anonymous
Not applicable

count

Hi, I would like to get the count of rows for column A when column B, which is year is 2019

i.e.

countofrows =
CALCULATE(
COUNTROWS('table1')
, 'table2'[Year] = 2019
)
 
What is wrong with this please?
1 REPLY 1
HotChilli
Super User
Super User

Do you have 1 table or 2 tables?

If you have 1, the count won't work because you are referring to 2 tables.

If you have 2 tables, you need a relationship set up correctly between them.

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.

Top Solution Authors