Which table hold the tax for sales order? - reporting-services

I create SSRS report that read data from Sales order in AX 2012.
In my SSRS report I want to calculate Total Amount and VAT for the Sales Order but i can't find where can get the tax for sales order.

There is no simple answer for this, but you should not use the tables your self, but use the class SalesTotals to calculate.
You may also consider looking at class SalesConfirmDP to see how in does its job.

Related

how do i group customer entries using months across different years in ssrs reports in nav

I am trying to get Sum of each customer ledger entries and group the Ssrs report into months across different years. For instance, I should be able to filter with the year 011117..310318, this should give me entries of each customer grouped per month: November, December, Jan(18), Feb, Match.
You can do this by using a matrix in your report.
Add the matrix and set the row group to group by Customer (whatever makes the customer unique such as an ID).
Add column groups by month and then a parent column group by year. If you don't have separate columns for months and years in your dataset, you can use expression into the group expression such as..
=Month(Fields!myDateField.Value)
=Year(Fields!myDateField.Value)
In the data 'cell' just drag the value you want to aggregate there.
That should give you a basic working matrix.
If you need more help refer to the SSRS documentation on the matrix control.
https://learn.microsoft.com/en-us/sql/reporting-services/report-design/create-a-matrix-report-builder-and-ssrs?view=sql-server-ver15

spotfire multiple over statements in one custom expression

I have a table of travel expenses for analysis.
I would like to create a calculated column with a value for the maximum count of records with a certain category for each employee on any given day.
For example, if the category being reviewed is "dinner", we would like to know what is the maximum number of dinner transactions charged on any given day.
The following custom expression was able to count how many dinner expenses per employee:
count(If([Expense Type]="Dinner",[Expense Type],null)) over ([Employee])
But when trying to get the max count over days, I cant seem to get it to work. Here is the expression used:
Max(count(If([Expense Type]="Dinner",[Expense Type],null)) over ([Employee])) over (Intersect([Employee],[Transaction Date]))
This seems to provide the same answer as the first expression. Any idea on how to get this code to identify the value on the date with the most expenses for each employee?
If i understand your question and comments correctly, you should be able to use intersect.
count(If([Expense Type]="Dinner",[Expense Type],null)) over (Intersect([Transaction Date],[Employee]))
You may need to cast [Transaction Date] as a date if it is an actual DateTime. Otherwise you'd get one for each unique DT.

How do I add skipped dates on Report?

How do I add skipped dates on my report so there is no gap in time, an example
I have this:
1/1/16: 10 sales
1/3/16: 4 sales
1/7/16: 11 Sales
1/8/16: 8 Sales
I want this:
1/1/16: 10 sales
1/2/16: No sales
1/3/16: 4 sales
1/4/16: No Sales
1/5/16: No Sales
1/6/16: No Sales
1/7/16: 11 Sales
1/8/16: 8 Sales
I'm working with Visual Studio 2012 and Oracle
Regardless of which RDBMS you're using, a popular method is to either have a date table, or create a temporary table with dates in it, and join that table to whatever table has your data. For example,
SELECT [datetable].[date], [SalesTable].[NumberOfSales]
FROM [datetable]
LEFT JOIN [SalesTable] ON [SalesTable].[Date] = [datetable].[date]
will show you what you're looking for, assuming [datetable] contains every date.
I would suggest loop date-range via your programming code instead of SQL left join
Its always best to use a calendar table while reporting. Create a calendar table with all the dates and formats. Then you can join the calendar table and result view to get all dates and values.

SSRS how to show pre-calculated totals

I have a data like
which comes from SSAS. Amount_YTD and Amount_YTE values are as Measures.
YTDs are Year-To-Date values, and YTEs are Year-To-End values regardless of Month filter.
My report design is
So, with this design, YTD and YTE values are SUMed (naturally) and what I get is
So row and column totals and grand totals are not as expected. This is what I would like to achieve,
(some rounding may occur)
How can I get "Expected" report?
For ALI you need to use MAX instead of sum for YTD and MIN instead of sum for YTE looking at your data.
For your other two summary lines toplam and Genel Toplam I would alter your ssas query so that it gives YTD and YTE figures regardless of both customer and month and use these figures in the YTD and YTE columns

SSRS Line Chart X-Axis group by Month

everyone. For the life of me I cannot figure out why the X-Axis is pulling 2 dates in each month when I want it to group by each month. In the Values I have:
Value Field =RunningValue(Fields!new_actualsalesfromsplit.Value, Sum, "Chart1_SeriesGroup")
Category Field: =Fields!closedate.Value
Category Groups =Month(Fields!closedate.Value)
Group On =Month(Fields!closedate.Value)
Series Group by ["salesperson']
The chart should have a line for each sales person, and each month should be a cumulative representation of the sales by that person. Thanks for any help.
Set the category field to "=Month(Fields!closedate.Value)", or something similar that will net the results you need. Right now, even though you're grouping by month, you're still telling SSRS to use the atomic data for your X axis, so that's what it's doing.
It may make your task simpler to just add a Calculated Field to your dataset - open the dataset properties window, go to the fields tab, and click "add". Set that field to your month value, use it for grouping and your X axis.