Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Dear members,
I was trying to write a custom formula to implement the following expressions in many ways but I faced errors each time can you please help me out. The expression is : IF TODAY is > 9/13/2021, then count the # of days from 9/13/2021 to TODAY , then divide that number by 7 in order to get the # of weeks .
Solved! Go to Solution.
Like this?
NumWeeks =
IF (
TODAY () > DATE ( 2021, 9, 13 ),
DATEDIFF ( DATE ( 2021, 9, 13 ), TODAY (), DAY ) / 7
)
Like this?
NumWeeks =
IF (
TODAY () > DATE ( 2021, 9, 13 ),
DATEDIFF ( DATE ( 2021, 9, 13 ), TODAY (), DAY ) / 7
)
Thanks indeed Alexis this is exactly what I was targeting I will try it out and hope it gives me the exact results.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 8 | |
| 6 | |
| 6 | |
| 5 | |
| 4 |
| User | Count |
|---|---|
| 25 | |
| 15 | |
| 8 | |
| 8 | |
| 8 |