Qlik Community

New to Qlik Sense

Discussion board where members can get started with Qlik Sense.

fmazzarelli
Contributor III

target

Hi Community,

how to prevent calculation of the formula is applied to the total row (red box)

(Sum(DIRFIS)

+ sum({<Commessa = {"=KeepChar(Commessa, '0123456789') * 1 > 10"}>} [TotOreLavorate])

+ sum({<Commessa = {'ASSCLI', 'ASSREM'}>} [TotOreLavorate])

+ sum({<CTRAAN = {'N',""},Commessa = {'ASSTEL'}>} [TotOreLavorate])

+ sum({<CTRAAN = {'T',""},Commessa = {'ASSMOD'}>} [TotOreLavorate]))

/ (85 * (count(MeseEsteso)))Immagine.png

9 Replies
MVP
MVP

Re: target

May be use of Dimensionality() or SecondaryDimensionality() to get this done.

How to use - Dimensionality()

The second dimension... or how to use secondarydimensionality()

fmazzarelli
Contributor III

Re: target

Hi

sin, use Qlik sense

MVP
MVP

Re: target

fmazzarelli
Contributor III

Re: target

Hi,

Unfortunately I have not figured out how to activate the function

MVP
MVP

Re: target

Would you be able to share a sample to help you better?

fmazzarelli
Contributor III

Re: target

Hi Sunny,

the best I can give you is the image attached

Immagine.png

NN - NA lines are total lines and should have the value 0


I know it's my interest give my app but it includes sensitive data and sql connections . To protect the privacy I can not disclose certain information

bellamae
Valued Contributor

Re: target

Have you considered using a straight table? With a straight table you can have the field NA/NN but it won't group by it and you can avoid the total row.

fmazzarelli
Contributor III

Re: target

HI,

I understand the suggestion , but I would like to take the path indicated by Sunny . I hope I can give an example to follow

fmazzarelli
Contributor III

Re: target

It was very simple . I found an example and I managed to figure out how to make it happen .
The dimantionality function allows you to have the level for each line and then just an IF to determine if the level should be tested or not.


if the level is 1, then I put " - " if the level is 2 I apply the formula .


if (Dimensionality() = 2,(Sum(DIRFIS)

+ sum({<Commessa = {"=KeepChar(Commessa, '0123456789') * 1 > 10"}>} [TotOreLavorate])

+ sum({<Commessa = {'ASSCLI', 'ASSREM'}>} [TotOreLavorate])

+ sum({<CTRAAN = {'N',""},Commessa = {'ASSTEL'}>} [TotOreLavorate])

+ sum({<CTRAAN = {'T',""},Commessa = {'ASSMOD'}>} [TotOreLavorate]))

/ (85 * (count(MeseEsteso))), '-')

Community Browser