# QlikView App Development

Discussion Board for collaboration related to QlikView App Development.

Announcements
Talk to Experts Tuesday, January 26th at 10AM EST: Qlik Sense. REGISTER NOW
cancel
Showing results for
Did you mean:
Not applicable

## Set analysis with initial data reduction

Hello,

I am trying to apply a set of charts with set analysis data. My intent is to show some gauges with different perspectives of sales.

My problem begins when by the access control, the initial data reduction reduces data for the other perspectives and all gauges show the same information.

Does anyone knows how to solve this?

1 Solution

Accepted Solutions
Not applicable

No, the previous thread do no works properly. 😞

Bu the good news are that I found the solution! 🙂

The first thing that I did was tell to Qlikview do not reduce my data (red) and do the initial selection by section access (green)

After to do that I set "On open Triggers" at document properties, triggers tab.

So I set all my section fields to blocked at open document

With this, the users cannot change their pre selected access dimensions.

Finally I hide the section dimension fields like above:

Setting the HidePreffix like any char that you like, and then setting the section permissions fields to the previous preffix this fields will be hide at your selections;

Voilà!

The same behavior, with no data reduction and now My Set analysis expressions can be done! 🙂

6 Replies
Partner

Yousef Amarneh
Not applicable

Hi Yousef

Thanks for response!

So.. I had an access section at my document limiting data to users by initial reduction like this:

Section Access;

ACCESS, NTNAME, PASSWORD, GROUP, GROUP1, GROUP2

];

FROM [..\TRA\REF\Users.QVD] (qvd);

Section Application;

STAR IS * ;

SALESMAN_ACCESS:

USU_SALESMANCOD as SALESMAN_CODE

FROM [..\TRA\REF\Users.QVD] (qvd)

Where upper(trim(USU_KIND)) = 'SALESMAN';

GROUP, SALESMAN_CODE

];

INSPECTOR_ACCESS:

USU_INSPECTORCOD as INSPECTOR_CODE

FROM [..\TRA\REF\Users.QVD] (qvd)

Where upper(trim(USU_KIND)) = 'INSPECTOR';

GROUP1, INSPECTOR_CODE

];

MANAGER_ACCESS:

USU_MANAGERCOD as MANAGER_CODE

FROM [..\TRA\REF\Users.QVD] (qvd)

Where upper(trim(USU_KIND)) = 'MANAGER';

GROUP2, MANAGER_CODE

];

This section with initial data reduction limits and works properly in what data the respective users can see.

At few weeks, we have the necessity to set some gauges with analysis. So I created some variables with set analysis expressions

For the sales vs planning for entire business I ignore all managers, inspectors and salesman dimensions.

BUSINESS_SALES = (sum({$<MANAGER_CODE=,INSPECTOR_CODE=,SALESMAN_CODE=>} SALES_AMOUNT) / sum({$<MANAGER_CODE=,INSPECTOR_CODE=,SALESMAN_CODE=>} SALES_PLANNED)

For the sales vs planning for managers I set to ignore Inspector and salesman dimensions, and set all possibilities to the manager selected dimension;

MANAGER_SALES =

(sum({$<INSPECTOR_CODE=,SALESMAN_CODE=,MANAGER_CODE=P(MANAGER_CODE)>} SALES_AMOUNT) / sum({$<INSPECTOR_CODE=,SALESMAN_CODE=,MANAGER_CODE=P(MANAGER_CODE)>} SALES_PLANNED)

For the sales vs planning for inspectors, I set to ignore Manager and Salesman dimensions, ant set all possibilities to the inspector selected dimension.

INSPECTOR_SALES =

(sum({$<INSPECTOR_CODE=P(INSPECTOR_CODE),SALESMAN_CODE=,MANAGER_CODE=>} SALES_AMOUNT) / sum({$<INSPECTOR_CODE=P(INSPECTOR_CODE),SALESMAN_CODE=,MANAGER_CODE=>} SALES_PLANNED)

Finally for the salesman sales vs planning, I set to ignore both manager and inspector dimensions and set all possibilities to the salesman selected dimension.

SALESMAN_SALES =

(sum({$<INSPECTOR_CODE=,SALESMAN_CODE=P(SALESMAN_CODE),MANAGER_CODE=>} SALES_AMOUNT) / sum({$<INSPECTOR_CODE=,SALESMAN_CODE=P(SALESMAN_CODE),MANAGER_CODE=>}

SALES_PLANNED)

Those variables when set to Gauge charts and executed in manager access shows exactly what they have to show. The problem occurs when a salesman, for example, access the document. The initial data reduction limits data and all gauges shows the salesman result.

Do you have some idea how can I solve this?

Thanks again

Partner

are you sure that you checked these check boxes ? this is the document settings window

Yousef Amarneh
Not applicable

Yeap, both are checked

Not applicable

Oh my, Oh my, Oh My!!!!

After a lack of comprehension, the answer jumps above my screen!!!

Ignoring the GROUP access dimension too at all variables my problem it´s finally solved!!!

🙂

Thank you so much Yousef!

Not applicable

No, the previous thread do no works properly. 😞

Bu the good news are that I found the solution! 🙂

The first thing that I did was tell to Qlikview do not reduce my data (red) and do the initial selection by section access (green)

After to do that I set "On open Triggers" at document properties, triggers tab.

So I set all my section fields to blocked at open document

With this, the users cannot change their pre selected access dimensions.

Finally I hide the section dimension fields like above:

Setting the HidePreffix like any char that you like, and then setting the section permissions fields to the previous preffix this fields will be hide at your selections;

Voilà!

The same behavior, with no data reduction and now My Set analysis expressions can be done! 🙂

Tags