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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
kimm
Regular Visitor

The resource name isn't valid

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?

4 REPLIES 4
kimm
Regular Visitor

I still cant get this to work unfortunately - any ideas how to overcome the invalid resource error code? What normally needs to be changed (ie why does this error come up?)

 

Really appreciate any help on this!

Greg_Deckler
Super User
Super User

Is the function name "Period"?



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...

Oh - should I name the table the same name as FX name I used?

 

I indicated CreatePeriodTable under my FX name - but its basically a create table function.

 

I had renamed the table to Period though - will it help if I change the table name to mimic the FX name (CreatePeriodTable)?

kimm
Regular Visitor

Oh never mind - it didnt allow me to rename the table to the same name as the function as it said a query already existed with that name.

 

Cant seem to understand then why it cant accept Period as the resource name for the table....

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 MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.