Hi,
I have recently used a Time Date Filter function by creating a Period table using the following function:
(
PeriodName as text,
StartDate as date,
EndDate as date,
SortOrder as number
) as table =>
let
DayCount = Duration.Days(EndDate-StartDate)+1,
DateList = List.Dates(StartDate,DayCount,#duration(1,0,0,0)),
AddPeriodName = List.Transform(DateList,
each {PeriodName,_,SortOrder}),
CreateTable = #table(
type table[Period=text, Date=date, Sort=number],
AddPeriodName)
in
CreateTable
This created a Period table which in effect splices my data according to
Current YTD, MTD, WTD and Rolling Week Month and Year.
All the data refreshes correctly via desktop mode however I always get an error when it refreshes using the network gateway and it keeps giving me this error:
Data source type: | |
Data source error: | The resource name isn't valid : Period. |
I don't know what to do to enable it to accept the resource name and refresh the data online.
Any help would be much appreciated please?