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
Anonymous
Not applicable

question about a count rows by date

Hello,

I want to create a new indicator in my table to calculate the number of surveys by the year of the last survey date.

I tried to create a measure to identify the last date of the survey and then do a: calculate(count('barometrie_à_froid'[External Key]),'barometrie_à_froid'[Survey Date]=year([a year date of survey]))

But this does not work

1 REPLY 1
tamerj1
Super User
Super User

Hi @Anonymous 
The good practice is to first create a new calculated column that calculates the year then use it in the measure. Howeve, you may also use

=
CALCULATE (
    COUNT ( 'barometrie_à_froid'[External Key] ),
    ALLEXCEPT ( 'barometrie_à_froid', 'barometrie_à_froid'[Survey Date].YEAR )
)

 

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.