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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Creating View, Reports , Queries in AOT

(0) ShareShare
ReportReport
Posted on by 333

Hello 

I am trying to combine two tables the SalesLine table with another CustTable and not sure what would be the best option to choose when creating this report.

I am trying to get sales line data and match it to the customer table.

Basically trying to create  list of customers with sales from certain branches with data from both tables.


I have created a couple queries but cannot seem to get them to work correctly.

The select query opens and runs but no data is generated.

When i create the view it works fine but the view i am unable to push that onto a Menu Item. ( How can i get a view to generate on a menu item?, possible create method and run that way?)

Additionally i am trying to do some simple math and want to create a new field on this Query/Report that would take one field and subtract it from a certain amount.  I can write a method to do that but how do i create that field on the report?

Any help would be greatly appreciated.

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Chaitanya Golla Profile Picture
    17,225 on at

    Hi,

    As per my understanding, you are trying to create an SSRS report based on the query and you are unable to get the data. Execute the query in a job and check whether it is returning any data for the given criteria
    Probably your query requires some change if you can provide us the query will try to fix it.
    (Also when you chose option table browser on view, it shows the processed data).

    Could you provide some more information regarding pushing a view to a menuItem. If you want to push/view the data returned by view, then create a form with its datasource as this view and attach a menuitem to it.

    Create a display method on the query view and attach it to the field on the report design. 

    Refer the following link to add computed column/method to a view
    msdn.microsoft.com/.../gg845841.aspx

    Thanks,
    Chaitanya Golla

  • ScorpioDax Profile Picture
    333 on at

    Awesome perfect thank you Chaitanya.  You have addressed my menuitem issue.  

    Regarding the report i am having issues on how i should build it.

    I have about 4 tables that i need to use so i figure to build a query for that and then i could create a view that would show the data fields i need and also i would need to add some calculated columns to the view. ( Ex  If LineDisc == 0.85 then subtract -0.45 , If Line Disc == 0.55 then subtract -0.15, etc)

  • ScorpioDax Profile Picture
    333 on at

    Hi Sukrut thank you for your input, i greatly appreciate it.

    Can a report have a calculated column?  I am trying to create a report that would take a field in one table and subtract a certain value if it meets a certain criteria.

  • ScorpioDax Profile Picture
    333 on at

    How do i create that can you direct me to a how to ?

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Priya_K Profile Picture

Priya_K 4

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#3
Ali Zaidi Profile Picture

Ali Zaidi 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans