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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Springrollz
New Member

Extracted Function/Stored Procedures resulting in empty tables

Software: CCH which is accounting software.

 

I am trying to import aged creditor and debtor reports from CCH, I have successfully connected CCH to PowerBI but when executing functions and/or SPs, it results in tables with correct column headers but empty tables.

 

This also happens in SQL also so I'm pretty sure it's not a PowerBI issue.

 

 let
Source = Sql.Databases("**-sql02\cchsql"),
CentralBM = Source{[Name="***"]}[Data],
Reporting_AgedCreditors = CentralBM{[Schema="Reporting",Item="AgedCreditors"]}[Data],
#"Invoked FunctionReporting_AgedCreditors1" = Reporting_AgedCreditors(null, null, null, null)
in
#"Invoked FunctionReporting_AgedCreditors1" 

 

I've also tried using parameters to no avail, any advice would be highly appreciated. I know fx or SPs work because on CCH  it  creates aged debtor reports on demand.

2 REPLIES 2
silversea
New Member

Are you using CCH Axcess or which CCH software? Do you still have issue with this?

v-jingzhang
Community Support
Community Support

Hi @Springrollz 

 

If you remove the last step as below, what result does it return? 

let
Source = Sql.Databases("**-sql02\cchsql"),
CentralBM = Source{[Name="***"]}[Data],
Reporting_AgedCreditors = CentralBM{[Schema="Reporting",Item="AgedCreditors"]}[Data]
in
Reporting_AgedCreditors

 

If you want to use Stored Procedures in Power BI, you may refer to the following blog:

How to Use Stored Procedure in Power BI? | by Mücahit Berçin | Akkim Akademi | Medium

 

Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors
Top Kudoed Authors