Sort on a grouped column cognos - sorting

I've looked at a few ways to do this and I am unfortunately coming up short.
I have a list report in Cognos on which i have grouped some but not all columns. I would like to sort by customer account however i believe my groupings aren't letting me.
Columns:
Customer Account (Grouped)
Customer Name (Grouped)
Order Reference (Grouped)
Product Code
Sales Document Number (Grouped)
Order Date
Required Date
Despatch Date
Quantity Despatched
Despatch Mode
Despatch Price (Grouped)
The table shows the customers orders, what they have purchased and the collective price.
I would like to sort by the customer orders (grouped) column.
Thanks in advance
Will

To fix this i was fortunate that we did not require the grouping in the end and this was only a nice to have.
Thanks to anyone who logs onto this in order to help but the problem is sorted.
Thanks
Will

Related

DAX relationship

I am a beginner in Power BI. Just started working on DAX. I have a question regarding relationship.
I have made four tables i.e. Sales, Products, Product Category, Product Sub Category. Found that relatable columns are automatically picked up. ProductKey column in Product table contains unique Product Key and that propagates Sales Table where Product Key gets repeated. The arrow direction is from Products table to Sales table. '1' is added to Products and a '*' is added to Sales. I think this type of relationship is called 'One to Many' but when I check the properties of the relationship it indicates as 'Many to one'. If tried to change to 'One to Many' it shows error statement. Please help me out of this problem. Thanks.
Since you are saying that Product table has '1', while the Sales table has '*', so this is a One-to-Many relationship. However, when you open the relationship properties then you see the 'cardinality' as 'Many to one'. That is only because in the 'Edit relationship' window your table selection sequence is opposite. That is, the Sales table is selected at the top and the Product table is showing in the bottom.
So, summary, the relationship is correct, nothing to be worried about. :)
Rehan
There is no need to worry about your design however I will suggest you merge "Product Category" with "Product SubCategory" tables so you can achieve a star schema which works best with PowerBI.

Libreoffice-base subform_sales_desc inside form_order . first form cannot enter items as number and show as names and not gst,unit etc automatically

I am creating free accounting package in libreoffice-base to compete already available ones your contribution is appreciated. the package include tables:
items
item_groups
order_details
sales_bill_desc
cash
units
companyinfo
bill sales
Customer_ledger
etc.
and created two forms
first to enter items in items table with following fields:
id
List item
particulars
units from units table linked with id gst chooses from
tax table related as id basic price basic stock, barcode, group,
subgroup,
second form is sales bill entry form
it contains a form which relates to order_details table selects customers name from ledger where its state code is also defined e.g. for punjab its 03 basically it is picked from customer's GSTIN number
a subform which is connected to sales_bill_desc table related to order_details table with bill number in both tables.
now in subform when we enter one item, its name is displayed which is same entered in sales_desc table additionally it also need automatically display item units, gst, price(editable field but basic price must be displayed there).but it does not. how to do that i have studied books but am lacking i created same in access 2016 somewhere which worked fine (full working package accounts with inventory).At this time,I am trying to use same database but advanced with features such as barcode. Of course the issue is to be resolved if someone can help. I am loading code of the package.Please rectify and update.

Query and comparing 2 tables

i have a table that is stored all records of products, and than i have other table that stores all records that i bought in the table products.
In one of my pages i list all my products, but i will to list only the products that were not bought from the user. How can i query the listing of products to only show products that i didnt bought? How can i make this comparation or intersection in eloquent?
In my case the producst are information from users, or more specifically answers from Inquiries, the identifyer of the user is by email, i query by group of emails, and the email is unique for each survey.
ex:
$survey = $survey->answers->groupBy('email');
As you didn't provide any details of the tables, i will make some assumptions:
The product table has an id coloumn, the second table has some form of product id, to see what has been bought.
You should take a look at this:
DB::table('bought_stuff')->whereNotIn('email', [1, 2, 3])->get();
you can read about it here:
https://laravel.com/docs/5.3/queries#where-clauses under "whereNotIn".
It is a little difficult for me to answer, as i'm not completely sure about what you mean in the last part..

sales tracker return cost from query

I am using Oracle APEX 4.1.1 to build a sales tracker. To explain things as simple as possible we have a table CALLED "CARS" of all products and their cost with the columns as "CAR" and "COST" there are about 500 cars listed and their associated costs.
We have a form setup so the sales staff can record their sales week by week. Simple form with a list of values built upon the "cars" column called "P2_CARS and I want the cost field in the form "P2_COST" to be generated from a query that runs against the table.
It will run dynamically when they change the value in P2_CARS and I have this but pretty sure its all around the wrong way or just wrong.
SELECT COST FROM CARS WHERE CARS=P2_CARS
can anyone help?

Magento sort by sold products in last 30 days

How can I sort products (in categories) by ordered quantity in last 30 days.
I found this tutorial but it's not what I really want.
My suggestion would be to create a script that calculates these data.
The sales_flat_order_item table contains the information you needs I think (all items ordered with quantity and date among others). Put the result of this calculation (ordered_quantity integer) into a custom new attribute on the product ('popularity'). The script can be run via a cron job to prevent the customer from suffering from it.
Then all you need to do is make this attribute used for sorting and set it as available sorting for the category as well as as default sorting for products (in Magento configuration).

Resources