Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Class funcion in calculated dimension

Hi All,

I am looking for a solution to solve this.

should work with the class function but no idea how to.

Any idea  (see attached example)  

total beds needed     x times occured

3                                  1x

4                                  1x

5                                  1x

many thanks in advance!!

1 Solution

Accepted Solutions
Not applicable
Author

Hi Mavan,

I think you should do it in the script first:

Left Join

LOAD

          count(DISTINCT Patientnr) as CountNum

Resident a

Group by Datum;

wnd then the dimmension will be:

=class(CountNum, 1, 'X')

See the attached,

Hope it help.

View solution in original post

2 Replies
Not applicable
Author

Hi Mavan,

I think you should do it in the script first:

Left Join

LOAD

          count(DISTINCT Patientnr) as CountNum

Resident a

Group by Datum;

wnd then the dimmension will be:

=class(CountNum, 1, 'X')

See the attached,

Hope it help.

Not applicable
Author

Thanks works perfect.

In addition this is also working

=aggr(class(count(distinct Patientnr),1),Datum)      with the expression         count (distinct Datum)