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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric 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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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

Top Kudoed Authors