in a table I have a start date column which is called [From] of type Date and another end date column which is called [To] of type Date, in the same table I have a column virtual which contains the list of all the dates between [To] and [From] which is called [ExtraitDate], I want to create a list of dates from the column [ExtraitDate] to use it in the WORKDAY() function , but with this formula WORKDAY(MAX(Select(Register of RDS booklets[Date_Derniere_Feuille],([Unite]=[_THISROW].[Unite]))), 21, ListePedago[ExtraitDate]) I have this error, WORKDAY has invalid inputs. Parameter ListePedago[ExtraitDate] has the wrong element type: List
SPLIT((ββ & (ListePedago[ExtraitDate] - LIST(DATE(ββ)))), " , ")
I have this error message, Arithmetic expression β(ListePedago[ExtraitDate]-LIST(DATE(ββ)))β cannot convert βList of Dateβ to βList of List of Dateβ
Whoops! Try this instead:
SPLIT((ββ & (ListePedago[ExtraitDate] - LIST(ββ))), " , ")
Arithmetic expression β(ListePedago[ExtraitDate]-LIST(ββ))β cannot convert βList of Textβ to βList of List of Dateβ
OK. How about just this?
SPLIT((ββ & ListePedago[ExtraitDate]), " , ")
WORKDAY(MAX(Select(Registre des livrets RDS[Date_Derniere_Feuille],([Unite]=[_THISROW].[Unite]))), 21, SPLIT((ββ & ListePedago[ExtraitDate]), " , "))
error : WORKDAY has invalid inputs. Parameter SPLIT(CONCATENATE(ββ,ListePedago[ExtraitDate])," , ") has the wrong element type: Text
Wow! OK, so letβs try this, then:
(LIST(DATE(ββ)) + SPLIT((ββ & ListePedago[ExtraitDate]), " , β) - LIST(DATE(β")))
I created a new virtual column with this code, UNIQUE(SPLIT((ββ & ListePedago[ExtraitDate]), " , ")) and I inserted the column in the code, WORKDAY(MAX(Select(Registre des livrets RDS[Date_Derniere_Feuille],([Unite]=[_THISROW].[Unite]))), 21,[ListDatePed])
and everything works perfectly, thank you