Hi Bill,
I’ve had a look at your form and the Excel file you provided us, and I believe I have a DateDiff
formula that will work in your case:
concat("DateDiff /date1=", my:EndDate, "
/date2=", my:startDate, " /component=weekdays
/dsnamehol=AustralianHolidays
/xpathhol=/dfs:myFields/dfs:dataFields/d:SharePointListItem_RW/*[local-name() =
'", ../my:Australia_State/my:State, "' and normalize-space()]")
What this does is that it only selects non-blank
holidays from the column with the same name as the form’s currently selected
state. For example, *[local-name() = ‘NSW’] (in the case that my:State is NSW) will select elements from
the data source with the name d:NSW, and normalize-space() is a
way of checking that a field is non-blank, excluding spaces.
Could you give this formula a try and let us know if it works?