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
I have a started on date and ended on date (some are blank because they are still active) and I need to count the number of week between start date and end date. Thanks for the help!
Solved! Go to Solution.
Hey @Anonymous ,
if you use it as calculated column you should not use the MIN and MAX functions.
Try it without:
Age in Weeks = DATEDIFF( fact_member[started_on], fact_member[ended_on] , WEEK )
By the way, what should happen if there is no end date? I think this we have to handle somehow.
Hey @Anonymous ,
you can do that with the DATEDIFF function:
Weeks between Start and End = DATEDIFF( MIN( myDateTable[StartDate] ), MAX( myDateTable[EndDate] ), WEEK)
@selimovd so that looks like it counts them all the same, members who are still active and members who have end dates. See my image.
Hey @Anonymous ,
if you use it as calculated column you should not use the MIN and MAX functions.
Try it without:
Age in Weeks = DATEDIFF( fact_member[started_on], fact_member[ended_on] , WEEK )
By the way, what should happen if there is no end date? I think this we have to handle somehow.
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 97 | |
| 73 | |
| 50 | |
| 46 | |
| 44 |