web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Answered

Company range selection in customized report

(0) ShareShare
ReportReport
Posted on by 1,235

Hi All,

I noticed that the Customer Statement report have an option to select any company in the record to include option. I was trying to add into my customized report, does anyone know how can I enable this function in customized SSRS report?

pastedimage1663060746241v1.png

Any advice is much appreciated. Thanks.

Regards,
Teh

I have the same question (0)
  • GirishS Profile Picture
    27,825 Moderator on at
    RE: Company range selection in customized report

    Hi YA TEH,

    This company range will be shown if the query used in the report has cross company property set to "Yes".

    Thanks,

    Girish S.

  • Venedict Profile Picture
    1,235 on at
    RE: Company range selection in customized report

    Hi Girish,

    My custom report is using temp table and in my dp I already set the allowcrosscompany to true, but still no luck.

    Thanks.

    Regards,

    Teh

  • GirishS Profile Picture
    27,825 Moderator on at
    RE: Company range selection in customized report

    Are you using static AOT query for the report?

    If yes you need to set the  Allow cross company property of the static query to "Yes".

  • Venedict Profile Picture
    1,235 on at
    RE: Company range selection in customized report

    No, I'm not using statis AOT query.

    I'm using X++ code to create the query, also set the query.allowcrosscompany(true), but still the same.

  • Verified answer
    GirishS Profile Picture
    27,825 Moderator on at
    RE: Company range selection in customized report

    Filter screen you mentioned on the post will show only if the static query is used in the report data provider class.

    Refer to standard report "CustAccountStatementExt".

    They will be using the "CustAccountStatementExtBaseData" query on the data provider class.

    So the "CustAccountStatementExtBaseData" will have allow cross company query set to yes. If it is Yes then you will be able to see the company range filters.

    Thanks,

    Girish S.

  • Venedict Profile Picture
    1,235 on at
    RE: Company range selection in customized report

    Hi Girish,

    I managed make it work now. I didn't noticed previously my colleague has using a query in the custom report. After I changed the query to allow cross company and recompile the project, now I can see the Company Range tab appear.

    Thanks.

    regards,

    Teh

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
CA Neeraj Kumar Profile Picture

CA Neeraj Kumar 1,882

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 794 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 525 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans