Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics RMS (Archived)

Detailed Sales of item X

Posted on by Microsoft Employee

How can we extract detail sales reports for total transactions which contain a certain item?  For example last month what was the value of our sales that included Labor?  

Many thanks

*This post is locked for comments

  • Sad Profile Picture
    Sad 650 on at
    RE: Detailed Sales of item X

    hi,

    i used excel Pivot table to get data like this.

    Excel is more effective , just import data from SQL database into your sheet then create the Pivot you need.

    thanks

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Detailed Sales of item X

    I'd really like to see this in a report format instead of a query.  Can that be done?

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Detailed Sales of item X

    The following query will do the job for u but u can use it in SO only, if the idea of using a query is ok with u and u still need it for HQ, just let me know and I will adjust it and re-post

    select sum(total)

    from [transaction]

    where time >='2014-01-01'

    and time <'2014-02-01'

    and transactionnumber in

    (select distinct [transaction].transactionnumber

    from [transaction] inner join transactionentry

    on [transaction].transactionnumber=transactionentry.transactionnumber

    inner join item on item.id=itemid

    where time >='2014-01-01'

    and time <'2014-02-01'

    and itemlookupcode in ('xxx','zzz'))

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,253 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans