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.
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
Counter Column = 2
Counter Column = 2
Counter Column = 4
any help is appreciated :))
Thank you,
Mo
Solved! Go to Solution.
Hi @Anonymous ,
How about this one:
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! | |
| #proudtobeasuperuser | |
Hi @Anonymous ,
How about this one:
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! | |
| #proudtobeasuperuser | |
| User | Count |
|---|---|
| 8 | |
| 6 | |
| 3 | |
| 3 | |
| 3 |
| User | Count |
|---|---|
| 11 | |
| 9 | |
| 8 | |
| 6 | |
| 6 |