I have total quantity of invoice and taken quantity, I want column in my report to display remaining quantity.
How can I do the minus values on remaining column, as in the picture
I assume this is a Crystal CrossTab.
You can use the "Calculated Member" functionality of Crystal CrossTabs.
In the user manual, go to:
Cross-Tab Objects => Advanced Cross-Tab Features => Calculated Members.
Related
I've got a dataset with a column containing the id of the shop, another column with the EAN code of the product, and another column containing the quantity sold.
I create a Dataview in VEEML to link that to a calendar with the months and the year.
Can I create a metric on that Dataview to get the average quantity of sold items per shop, per months, years, etc ?
All the filters, dimensions and metrics used by a story could be edited in the pop-up "Datafields".
At the bottom of the left menu, click on the database icon to open the datafields options.
Search the field containing the quantity
Expand that field
Fill the textbox with the right SQL ANSI calculation. Don't forget to add a name at your metric at the end of the calculation using the "as name_of_the_metric"
Check the checkbox Is Metric As
Here, your calculation can be something as :
SUM(Sales_Quantity)/COUNT(DISTINCT ShopId) as Avg_Sales_Per_Shop
In each chart or grid, that calculation will be applied dynamicaly for each level of the dimensions in that chart.
I have imported my GA4 data into Google Data Studio and am trying to see how many giftcards have been sold by their value.
The item revenue metric in GA4 is equal to the giftcard value (i.e. revenue = $200 therefore $200 giftcard was sold).
I want to breakdown sales by giftcard value like so:
Giftcard (revenue)
Count
$200
4
$250
3
$300
6
To do this, I need to set a copy of item revenue as a dimension rather than a metric.
In Google Data Studio, I can create a calculated field with the following formula that should convert the item revenue into text:
CAST(Item Revenue AS TEXT)
The problem I'm having is that while the formula sets the field type as text, it is still regarded by GDS as a metric and can't be used as a dimension.
Even when I try to add text, GDS still recognises the field as a number:
CONCAT(CAST(Item Revenue AS TEXT), " giftcard")
To use a metric as a dimension you can make a combination of data. When defining the graphic element (table, for example) and the respective data source, just create a data combination, but do not combine the data with any other source and just define the combination with the initial data itself. So you will have the same data structure only through a combined structure.
When making a combination of data, data studio recognizes all calculated fields (metrics) as dimensions. Thus, it is possible to make the conversion.
I need to get crystal reports to display the below:
Display n records
Where record divided by x = n
My example- I have stock that comes into my business which we book on as a total quantity say 300. We can get 10 on a pallet so this quantity equals 30 pallets. I want crystal to display each pallet as a separate record rather than the total 300. Is this possible or would we need to change the booking in procedure to reflect that one pallet equals one record?
I am using crystal reports 2008.
Thanks,
Kyle
I'm working on a SSAS cube to allow user to analyze some sales.
So, I created a fact table to record all sales and few dimensions to browse inside data (category / location & store, etc...).
This is a example of the fact table output (from SQL Server Management Studio) :
When I browse my cube, I can review all sales including date, quantity, etc.
However, when I add some fields like the "unit price" or the "unit cost", it returns me a strange result probably due to an aggregate behavior.
It seems it return the sum of all matching rows (aggregateFunction property).
How to simply display the unit price of a sale without apply any calculation to the unit price column. The None value for the AttributeFunction display BLANK/NULL.
If your unitCost and unitPrice are the same for each product (I mean unitCost can be only 77.6 for product_id = 2), you can just use average (or even emulate average by SUM/COUNT) - but only for product dimension on axis!
Another dimensions will show real average values.
Maybe it's better to use this 'static' fields like attribute properties in 'Product' dimension? But you still need to add some logic to choose one value for several (or all) product members selected.
I am using Microsoft SQL Server Report Builder and am trying to graph a line based on multiple fields within a Dataset. Basically I have a Dataset containing a lot of elements, each of which has a category field, and twenty fields associated with previous year values. I want to be able to group by category, then graph a line for each category that looks up the summed value for each of the twenty years.
So I want the X values for the line to be years, and the Y values to be whatever the summed total is for that category, in that year.
I'm going to assume you have multiple rows for each category with a field for the year, category, and value. If it is a single row which contains all of the values for each year then things will be a bit tougher.
On your line chart you should make the category group the year, make the series group the category, and then make the value the SUM() of the value field.