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!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
I have a date slicer, say values of 1/1/17 to 1/21/17. I would like a simple measure of the number of days between those two dates (i.e. 20). I want to used that measure to create a number of visuals based on the number of days selected in the slider. If it's 1/1/16 to 1/2/17, I want the measure to return 366 days. Hope this makes sense. Seems like it should be an easy one. Appreciate your help!!
Solved! Go to Solution.
Hi @Anonymous
Please try the following calculated measure. Just substitute the table/date column you are using in your slicer.
Days Between = DATEDIFF( MIN('Table'[Date]), MAX('Table'[Date]), DAY )
Hi @Anonymous
Please try the following calculated measure. Just substitute the table/date column you are using in your slicer.
Days Between = DATEDIFF( MIN('Table'[Date]), MAX('Table'[Date]), DAY )
Hello,
How about returning just business days M-F
Thanks
Hi @chaddruck
One way is to keep a column in your Date Table that carries just 1's and 0's. Set weekend values (and holidays if you can) to 0. That way you can just SUM the column between the dates you care about and that should hopefully give you the number you need.
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.