Join 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!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
As mentioned in the subject, I'm having trouble creating a measure for my days remaining for using the todate from my data.
I have made sure that the column is formatted as date. However I still can not link the column in any measure. I have tried using datediff, max, min but nothing worked.
I am able to create a column using the formula, but would that be ideal?
Solved! Go to Solution.
Hi @ahmed-97 - Can you try with the below measure to get the days remainings
Days Remaining =
IF (
MAX('YourTable'[ToDate]) >= TODAY(),
DATEDIFF(TODAY(), MAX('YourTable'[ToDate]), DAY),
BLANK()
)
Hope it helps
Did I answer your question? Mark my post as a solution! This will help others on the forum!
Appreciate your Kudos!!
Proud to be a Super User! | |
Hi @ahmed-97 - Can you try with the below measure to get the days remainings
Days Remaining =
IF (
MAX('YourTable'[ToDate]) >= TODAY(),
DATEDIFF(TODAY(), MAX('YourTable'[ToDate]), DAY),
BLANK()
)
Hope it helps
Did I answer your question? Mark my post as a solution! This will help others on the forum!
Appreciate your Kudos!!
Proud to be a Super User! | |
This actually worked, Thank you so much!
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!