Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin 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.
I have a table with a single column (date), which has a series of dates under it.
I need to create a measure that counts the number of dates that falls in 2018.
Any idea how I can do this?
Thanks
Solved! Go to Solution.
Hi, lets try with this:
Datesin2018 = COUNTROWS(FILTER(Table1,YEAR(Table1[Fecha])=2018))
Regards
Victor
You may also try the DAX below.
Measure = CALCULATE ( COUNT ( Table1[date] ), Table1[date].[Year] = 2018 )
You may also try the DAX below.
Measure = CALCULATE ( COUNT ( Table1[date] ), Table1[date].[Year] = 2018 )
Hi, lets try with this:
Datesin2018 = COUNTROWS(FILTER(Table1,YEAR(Table1[Fecha])=2018))
Regards
Victor
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 76 | |
| 37 | |
| 31 | |
| 27 | |
| 27 |