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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 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.