Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics RMS (Archived)

RMS detailed sales report listing transactions with two items on them

(0) ShareShare
ReportReport
Posted on by 1,565

Hey guys, we're looking for a report that would list all transactions within a specific date range that contain two items on the report.

 

ie:

date sold - (date range)

transaction contains both item 1 and item 2

 

not looking for transactions that contain item 1 or item 2, but only the transactions that contain both items in the same sale.

 

Has anyone made this? or have an idea as to what code I could punch in to start my own?

 

Thanks,
Devon

*This post is locked for comments

  • TODD TARTALIA Profile Picture
    TODD TARTALIA 740 on at
    Re: RMS detailed sales report listing transactions with two items on them

    Hi, sorry for delay. Here is a basic SQL solution:

    SELECT DISTINCT A.TransactionNumber, A.ItemID AS ItemNo, A.Description AS Description, A.TransactionTime FROM TransactionEntry AS A, TransactionEntry AS B

    WHERE A.TransactionNumber=B.TransactionNumber And A.TransactionTime=B.TransactionTime And ((A.ItemID=Item1 And B.ItemID=Item2) Or (A.ItemID=Item2 And B.ItemID=Item1)) And A.TransactionTime Between StartDate And EndDate

    ORDER BY A.TransactionNumber, A.ItemID;

    A=Database, and ItemID and the Dates are variables for you to change.

  • DEVON LEROUX Profile Picture
    DEVON LEROUX 1,565 on at
    Re: RMS detailed sales report listing transactions with two items on them

    MGordon - this has been suggested already but does not work.

  • Re: RMS detailed sales report listing transactions with two items on them

    You can do this with the detailed sales report just use the filter settings to do it,

    Something like date range is between A and B

    AND itemlookupcode = Item #1

    AND date range is between A and B

    AND Itemlookupcode = Item #2

    Drage the transaction number to the left side and that should give you what you need.

  • DEVON LEROUX Profile Picture
    DEVON LEROUX 1,565 on at
    Re: RMS detailed sales report listing transactions with two items on them

    Any luck with this Todd?

    I haven't had any luck with it.

  • TODD TARTALIA Profile Picture
    TODD TARTALIA 740 on at
    Re: RMS detailed sales report listing transactions with two items on them

    You are of course right, sorry. I am however working on a solution for you because I think the information interesting. :)

  • DEVON LEROUX Profile Picture
    DEVON LEROUX 1,565 on at
    Re: RMS detailed sales report listing transactions with two items on them

    Wish it were that simple Todd, unless you're using a different report than I am?

    I'm using the Sales - detailed sales report (in store ops AND hq) with no results when selecting AND as a condition

  • TODD TARTALIA Profile Picture
    TODD TARTALIA 740 on at
    Re: RMS detailed sales report listing transactions with two items on them

    You have to select these two items by ItemLookupCode in the conditions screen on the report filter, and select AND as a condition.

  • DEVON LEROUX Profile Picture
    DEVON LEROUX 1,565 on at
    Re: RMS detailed sales report listing transactions with two items on them

    Basically, we want to see how frequently two items are sold together - has anyone seen or made a report like this before?

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,409 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans