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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
abaken
Regular Visitor

ExpressionError re missing module refrence

Hi

 

I have a query below which calls on a parameterp_StartDate. the parameter has a Date type and format d/mm/yyyy.

 

I get this error

Expression.Error: The import culture matches no exports. Did you miss a module reference?

 

The Query code is below.

 

How can I find where the error is?

 

= let
Source = GetConsolidatedSQLData("Select accountcode, branchcode, departmentcode, transactiondate, transactionamount, periodno, yearno, periodid from GLTRAN Where GLTRAN.TransactionDate >= '"& Date.ToText(p_StartDate, "d/mm/yy", culture ="en-gb") & "'"),
#"Changed Type" = Table.TransformColumnTypes(Source,{{"AccountCode", type text}, {"BranchCode", type text}, {"DepartmentCode", type text}, {"PeriodNo", type text}, {"YearNo", type text}, {"PeriodID", type text}, {"CompanyCode", type text}, {"TransactionAmount", Currency.Type}, {"TransactionDate", type date}})
in
#"Changed Type"

1 REPLY 1
Anonymous
Not applicable

Hi @abaken ,

GetConsolidatedSQLData() is not a built-in function.  Is it a custom function? Please check if this custom function is present in the query. The reason for the error seems to be that this custom function cannot be found in the whole query.

 

Best Regards,
Gao

Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly -- How to provide sample data

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

Check out the February 2026 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors