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

Announcements
Discover how organizations are unlocking new revenue streams: Watch here
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Calculation Condition and Detached

Hi I have hopefully have a simple question I have a Chart with a straight table list of Projects, there is a field [Project Status] that can have a number of variables ,  Initialized, Approved, started and Closed.

For my chart I’m only interested where the [Project Status] = ‘Approved’.

So I thought it was a simple case of adding “if([Projects Status]= 'Approved',1,0)”  to the Calculation Condition.

But this only seems to work if first filter for “Approve using a list box etc., and then changing the properties to Detached, otherwise all I get is “Calculation condition unfulfilled”

What I want is for my Chart to only show Approved Projects without setting any filters.

1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

you don't need calculated dimension for your issue...simply use [PROJECT ID] as dimension and update your expression to the following:

Count({<[Projects Status]={'Approved'}>} [Activity ACTUAL START])

View solution in original post

13 Replies
MK_QSL
MVP
MVP

Use Calculated Dimension as below

If([Projects Status]= 'Approved',[Projects Status])


And tick suppress when value is null

Not applicable
Author

Thanks Manish but this just gives me every Option

Capture.JPG

Not applicable
Author

Did you tick the "Supress when value is null" as Manish mentioned? It should work.

If still doesn't work, you can attach the file for us to check.

MK_QSL
MVP
MVP

Count({<[Project Status] = {'Approved'}>}Activity)


===========================================================

For Calculated Dimension, you have more than one dimension, so use as below

IF([Project Status] = 'Approved', Dimension1)

IF([Project Status] = 'Approved', Dimension2)

IF([Project Status] = 'Approved', Dimension3)


Where Dimension1, Dimension2 and Dimension3 are the name of your fields...

Now you can use Count(Activity) or Count(Distinct Activity)

===========================================================

Or simply use

Dimension1

Dimension2

Dimension3

and The Expression I have provided at the top




Not applicable
Author

Hi sorry dont understand why this should be so complicated

Have enclosed the file

Thanks

Mark

Not applicable
Author

Please see attached. Hope this is what you are looking for.

MK_QSL
MVP
MVP

Create a Chart

Dimension

1)

use Calculated Dimension

=IF([Projects Status] = 'Approved', [PROJECT ID])

2) use Calculated Dimension

=IF([Projects Status] = 'Approved',[Projects Status])

Tick suppress when value is null for both of the above Calculated Dimennsion

Expression

Count([Activity ACTUAL START])

MK_QSL
MVP
MVP

Or

Create a Chart

Dimension

Project ID

Project Status

Expression

Count({<[Projects Status] = {'Approved'}>}[Activity ACTUAL START])

Anonymous
Not applicable
Author

you don't need calculated dimension for your issue...simply use [PROJECT ID] as dimension and update your expression to the following:

Count({<[Projects Status]={'Approved'}>} [Activity ACTUAL START])