cancel
Showing results for
Did you mean:

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Anonymous
Not applicable

## Network Days with Negative Values In DAX Column

Dear All  ,

Plese help me to get out of this !!!

I want Values Row by row in Calculated column followed same way as you mentioned below and it is not giving me negtive values,Please find the Below Data whichi have and Screen Captures.

Dax Formula What I used:

TBL_Date=DATESBETWEEN('Calender Table'[Date].[Date],MasterData[Invoice Date],MasterData[Payment Date])
var TBL_FinalDate=
"Holiday",IFERROR(LOOKUPVALUE('Holiday-2019'[Holidaycount],'Holiday-2019'[Holidays - 2019,2020],[Date]),0)
)
return
SUMX(TBL_FinalDate,if([Working day]=1&&[Holiday]=0,1,0))
3 REPLIES 3
Community Support

Hi @Anonymous ,

Do you mean to get a continuous accumulation value instead of a total value?
You could add an index column in your table in the query editor.

Then add a condition in your SUMX formula like :

FILTER('Table','Table'[Index]<=EARLIER('Table'[Index]))

If this post helps, then please consider Accept it as the solution to help the other members find it.
Anonymous
Not applicable

Dear @v-eachen-msft ,

Current using Dax Formula:

Receipt Date to Posting Date(Working Days) =
var TBL_Date=DATESBETWEEN('Calender Table'[Date].[Date],MasterData[Invoice Received on],'MasterData'[Posted Date])
var TBL_FinalDate=
"Holiday",IFERROR(LOOKUPVALUE('Holiday-2019'[Holidaycount],'Holiday-2019'[Holidays - 2019,2020],[Date]),0)

)
return
SUMX(TBL_FinalDate,if([Working day]=1&&[Holiday]=0,1,0))

Invoice Date to Receipt Date(Calender Days ) =
var TBL_Date=DATESBETWEEN('Calender Table'[Date].[Date],MasterData[Invoice Date],'MasterData'[Invoice Received on])
var TBL_FinalDate=
"Holiday",IFERROR(LOOKUPVALUE('Holiday-2019'[Holidaycount],'Holiday-2019'[Holidays - 2019,2020],[Date]),0)
)
return
CALCULATE(SUMX(TBL_FinalDate,if([Working day]=1&&[Holiday]=0,1,0))-1,FILTER(MasterData,MasterData[Index]<=EARLIER(MasterData[Index])))

There is Change....

Anonymous
Not applicable

Sorry There is NO CHANGE

Announcements

#### Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

#### Power BI Monthly Update - August 2024

Check out the August 2024 Power BI update to learn about new features.

#### Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

Top Solution Authors
Top Kudoed Authors