Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.

Reply
Syndicate_Admin
Administrator
Administrator

DIFFERENCE OF DAYS WITH NETWORKDAYS EXCLUDING DUPLICATE VALUES

NEEHola, guys

I am trying to calculate the difference of days between the two dates with Networkdays, however what I am looking for is by means of a formula to calculate the difference excluding the repeated values in column #Guia, that is to say that the last rows of the table should only take me 1 since the rest is repeated as a result of the same case.

# GuideStart DayClosing Day
00040000602513/4/20235/5/2023
00040000603718/4/20233/5/2023
00040000604821/4/20235/5/2023
00040000605121/4/20233/5/2023
00040000605724/4/20238/5/2023
00040000606424/4/20233/5/2023
00040000606626/4/202310/5/2023
00040000606726/4/20235/5/2023
00040000606826/4/20239/5/2023
00040000606926/4/202316/5/2023
00040000607026/4/202316/5/2023
00040000608226/4/202315/5/2023
00040000608226/4/202315/5/2023
00040000608226/4/202315/5/2023
00040000608226/4/202315/5/2023
00040000608226/4/202315/5/2023
00040000608226/4/202315/5/2023
00040000608226/4/202315/5/2023
1 ACCEPTED SOLUTION
Syndicate_Admin
Administrator
Administrator

Now if I could solve you gave me an idea the formula is like this:

Days of attention test =
AVERAGEX(
SUMMARIZE(Claims;Claims[Notice];Claims[Claim Start Date];Claims[Claim Closing Date]);
NETWORKDAYS(Claims[Claim Start Date];Claims[Claim Closing Date]))

View solution in original post

3 REPLIES 3
Syndicate_Admin
Administrator
Administrator

Now if I could solve you gave me an idea the formula is like this:

Days of attention test =
AVERAGEX(
SUMMARIZE(Claims;Claims[Notice];Claims[Claim Start Date];Claims[Claim Closing Date]);
NETWORKDAYS(Claims[Claim Start Date];Claims[Claim Closing Date]))
Syndicate_Admin
Administrator
Administrator

It does not work xq what you are summarizing is the dates and not considering the # of Guia, what I should do is summarize the repeated guides and calculate on the dates that remain.

amitchandak
Super User
Super User

@Syndicate_Admin , Try a measure like

 

Sumx(summarize(Table, Table[# Guide], Table[Start Day], Table[Closing Day]), networkdays(Table[Start Day], Table[Closing Day], 1))

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code FABINSIDER for a $400 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

Check out the February 2025 Power BI update to learn about new features.

March2025 Carousel

Fabric Community Update - March 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors