Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Save $650 on Qlik Connect, Dec 1 - 7, our lowest price of the year. Register with code CYBERWEEK: Register
cancel
Showing results for 
Search instead for 
Did you mean: 
jadams123
Creator
Creator

Quick Question

Hi All:

Question 1:

I want too:

if (today -1) = mon then 0, if (today -1) = tue then 2, if (today -1) = wed then 3...and so on

Question 2:

I want to be able to do this:

How can I group:

1) Group anything other than CX1, CX2, CX3, CX4 in "Other CX type East"


2) Group anything other than CX5, CX6, CX7, CX8 in "Other CX type West"

and so on...

   

GroupCustomer TypeSales
EASTCX1$100.00
EASTCX2$200.00
EASTCX3$300.00
EASTCX4$400.00
EASTOther CX Type EAST$500.00
Total EAST $1,500.00
WESTCX5$600.00
WESTCX6$700.00
WESTCX7$800.00
WESTCX8$900.00
EASTOther CX Type WEST$500.00
Total West $3,500.00

This is my current formula. This obviously just shows sales for CX's

= Sum( {$<GLYEAR = {2017},

CUSTOMER_TYPE = { CX1, CX2, CX3, CX4, CX5, CX7, CX8 },

CREDIT_CODE = {YES}>} AMOUNT )

Thanks,

J

13 Replies
jadams123
Creator
Creator
Author

its a database.

vishsaggi
Champion III
Champion III

Can you run your database query and attach your qvw file where you have the problem?

jadams123
Creator
Creator
Author

I think this was getting too complicated.

I figured it out.

I created a calculated dim...if(customer type =XYZ, then .... elseif  'Other Customer Type'.

Instead of Other Customer Type east/west e.tc

vishsaggi
Champion III
Champion III

IF it solved your query, please close the thread marking correct or helpful to which ever responses you feel helped you.