Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
hello , i'm working with power bi RS and
i'm trying to calculate number of days between startdate and enddate except the week end and free day but i haven't found
any idea please
thank you
Solved! Go to Solution.
hello , i finally found a solution
here the dax function that i used after creating a date table that containt holidays days
Try NETWORKDAYS function
i tried it but it did'nt accept it it's not a regonized function i'm work with power bi rs Version: 2.105.1143.0 64-bit (mai 2022)
It is relatively new function, you must upgrade least to September 2022 (or bettter to last version).
Power BI Report Server September 2022 Feature Summary | Microsoft Power BI Blog | Microsoft Power BI
i don't have the permission to made it because i work with client computer and it's gonna take a long long time to have those permission 😕
Try ask our client to upgrade Power BI Desktop, there is additional reason, May 2022 version is out of support. Currently supported versions are: Jan2023, May2023 and Sep2023.
i add a holidays table date that containt all days not to count but after that when a i made a datediff it doesn't take all except my holidays table
hi @asmaG
If you are looking for a simple way you should have a Date Dimesion correctly connected to your facts tables .
so you can have a measure which can simply calculate the date diff between the two dates ,
(a good date dimension is the one which have working days (as a flag for example 1) and weekend days (0).
if this is helpful for you please mark it as a solution .
hello , i finally found a solution
here the dax function that i used after creating a date table that containt holidays days
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
3 | |
1 | |
1 | |
1 | |
1 |