Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
Hi,
Does anyone know how I can do a DateDiff but excluding Sunday? It seems this is easier said than done!
With this example the DateDiff between the two dates is 5. Excluding Sunday it should be 4
This the the PBIX file: https://www.dropbox.com/s/raye0i6xfvr0h9y/dates.pbix?dl=0
Thanks,
Mike
Solved! Go to Solution.
https://www.dropbox.com/s/oaq85z3v79hlq77/dates.pbix?dl=0
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
https://www.dropbox.com/s/oaq85z3v79hlq77/dates.pbix?dl=0
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
Hi,
Thank you for that. I'm wondering, this was only sample data and I'd implement this on multiple DateDiff functions, will I need to create a calendar table for each measure?
Thanks
In my opinion, I think one calendar table might be enough if it can cover your business requirement.
The reason why I created the new calendar table is that the existing dates table did not cover all dates in the fact table.
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
User | Count |
---|---|
98 | |
90 | |
77 | |
71 | |
64 |
User | Count |
---|---|
114 | |
98 | |
96 | |
68 | |
67 |