This is best Fabric, Power BI, SQL and AI community event. How do we know? The last event sold out! Save €200 with code FABCMTY200.
Register nowA new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.
Hi,
Getting error while doing network days calculation, for this calculation i create a new table with date, week end Workday as given below.
and getting error while calculating
Your solutions is great @bhanu_gautam
Hi, @JawaharPrem6
You can use the following DAX expression to calculate the number of network days excluding Saturday and Sunday:
NETWORKDAYS = NETWORKDAYS('Gobal_Master_Data_NA'[Received_Date],'Gobal_Master_Data_NA'[Completed_Date])
Here's the dataset I used:
Here are the results:
You can learn how to use this function from the link below:
NETWORKDAYS function (DAX) - DAX | Microsoft Learn
I've uploaded the PBIX file I used this time below. In addition, I found a case with the same issue:
Solved: Network Days Calculation for Power Bi - Microsoft Fabric Community
Solved: Network Days - Microsoft Fabric Community
If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .
Best Regards
Jianpeng Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@JawaharPrem6 , Try using below measure
Process_Time_New =
VAR _Start = Gobal_Master_Data_NA[Received_Date]
VAR _End = Gobal_Master_Data_NA[Completed_Date]
RETURN
COUNTROWS(
FILTER(
Working_Dates,
Working_Dates[Date] >= _Start &&
Working_Dates[Date] <= _End &&
Working_Dates[Workday] = 1
)
)
Proud to be a Super User! |
|
Hi, Thanks for your time,
it working but its counting insted of calculating time..
calculated time like this
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 32 | |
| 26 | |
| 23 | |
| 20 | |
| 15 |
| User | Count |
|---|---|
| 65 | |
| 41 | |
| 28 | |
| 22 | |
| 22 |