Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
brettaustin
Contributor III
Contributor III

Calculated Expression not displaying in Bar Graph

I want to create a bar graph that counts the total of sales types for each reporting period.  However I want to combine all the 'Include' records in one graph (stacked... but not separated by each 'sales type')

Report Period       SalesType

1                            Include

1                            Exlcude

1                            Include - Sale

1                            Include - Tax

1                            Include - credit

1                            Include - Coupon

1                            Exclude - Reject

1                            Exlcude - Feature

1                            Include - Salary

1                            Include - Salary

1                            Include - Salary

1                            Include - Salary

1                            Include - Salary

Desired End Result:

Include: 10

Exclude: 1

Exclude - Reject: 1

Exclude - Feature: 1

I tried creating separate expressions for each count but when I do this only 1 graph is displayed.  Please Help!

Exp1: =Count ({<SalesType={'Include','Include - Sale','Include - Tax','Include - credit','Include - Coupon'}>} SalesType)

Exp2:  =Count ({<SalesType={'Exclude'}>} SalesType)

1 Solution

Accepted Solutions
9 Replies
brettaustin
Contributor III
Contributor III
Author

Example of bar Graph not displaying correctlyGraph Example.PNG

shiveshsingh
Master
Master

Capture.JPGYou need calculated dimension

=if(WildMatch(SalesType,'Include*'),'Include',SalesType)

sunny_talwar

Would you be able to share your qvw file?

shiveshsingh
Master
Master

and expression will be count([Report Period])

brettaustin
Contributor III
Contributor III
Author

could you please add the qvw?

qv_testing
Specialist II
Specialist II

Like this,

Capture.JPG

shiveshsingh
Master
Master

pfa

brettaustin
Contributor III
Contributor III
Author

Thank you!!!!

shiveshsingh
Master
Master

Glad to know it worked