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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Anonymous
Not applicable

Date Counter Column

Hello All,

 

I am looking to create 1 column that counts each date that is older than today's date.

 

This Counter Column will be feeding from 4 other columns. Each column contain a specific date (Future/Past dates).

 

Please take a look into the below screenshot to help you understand better:

 

Example.1

Mobafa_0-1653576131794.png Counter Column = 2

 

Mobafa_1-1653576259442.png Counter Column = 2

 

 

Mobafa_2-1653576320922.pngCounter Column = 4

 

 

any help is appreciated :))

 

Thank you,

Mo

1 ACCEPTED SOLUTION
tackytechtom
Super User
Super User

Hi @Anonymous ,

 

How about this one:

tomfox_0-1653589252523.png

 

Here the code for the calculated column:

Column = 
( Table[Date1] < TODAY() ) + ( Table[Date2] < TODAY() ) + ( Table[Date3] < TODAY() ) + ( Table[Date4] < TODAY() )

Quite interesting, DAX considers TRUEs as 1 and FALSE as 0. That comes in handy in many cases, such as yours ๐Ÿ™‚

 

Let me know if this helps!

 

/Tom
https://www.tackytech.blog/
https://www.instagram.com/tackytechtom/

 



Did I answer your questionโ“โžก๏ธ Please, mark my post as a solution โœ”๏ธ

Also happily accepting Kudos ๐Ÿ™‚

Feel free to connect with me on LinkedIn! linkedIn

#proudtobeasuperuser 

View solution in original post

2 REPLIES 2
tackytechtom
Super User
Super User

Hi @Anonymous ,

 

How about this one:

tomfox_0-1653589252523.png

 

Here the code for the calculated column:

Column = 
( Table[Date1] < TODAY() ) + ( Table[Date2] < TODAY() ) + ( Table[Date3] < TODAY() ) + ( Table[Date4] < TODAY() )

Quite interesting, DAX considers TRUEs as 1 and FALSE as 0. That comes in handy in many cases, such as yours ๐Ÿ™‚

 

Let me know if this helps!

 

/Tom
https://www.tackytech.blog/
https://www.instagram.com/tackytechtom/

 



Did I answer your questionโ“โžก๏ธ Please, mark my post as a solution โœ”๏ธ

Also happily accepting Kudos ๐Ÿ™‚

Feel free to connect with me on LinkedIn! linkedIn

#proudtobeasuperuser 

Anonymous
Not applicable

Thank you @tackytechtom  - this PBI feature came in handy ๐Ÿ™‚ 

Helpful resources

Announcements
November Fabric Update Carousel

Fabric Monthly Update - November 2025

Check out the November 2025 Fabric update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Users online (25)