cancel
Showing results for 
Search instead for 
Did you mean: 

Daily and Monthly sales query

Former Member
0 Kudos

Dear experts,

I am new in using SQL queries. I would like to get a query that will give me;

1. Daily and Monthly sales,

2. Month to Date,

3. Projected v Actual sales by item group and branch

I will appreciate any kind of help

Accepted Solutions (0)

Answers (2)

Answers (2)

kothandaraman_nagarajan
Active Contributor
0 Kudos

Try this query for daily sales,

SELECT T0.[DocNum], T0.[DocDate], T0.[CardName], T0.[DocTotal] FROM OINV T0 WHERE datediff(day, T0.[DocDate],getdate()) = 0

Regards,

Nagarajan

kothandaraman_nagarajan
Active Contributor
0 Kudos

Hi,

Have you tried with standard sales analysis report from SAP B1?

Regards,

Nagarajan

former_member467290
Discoverer
0 Kudos

Hi Nagaraja,

Yes I have but it could not give me the desired results. I am trying to extract data for use in designing Crystal Dashboard with;

1. Daily and Monthly sales,

2. Month to Date,

3. Projected v Actual sales by item group and branch

as my KPIs