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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
philgood34
Creator II
Creator II

MIN GRAPHIC SCALE

Hi everybody

I try to improve the appearance of a graph by customizing the scale

I would like the y-axis to start at 90% of the minimum value for example

GRAPHIC_SCALE.png

I tried, but i don't know the syntax with "min" or "range min" applied to the sales values (Measure is Sum({<Flag = {'CY'}>}VMS_CATTC)) for the period (Dimension is AsOfMonthYear)

Regards

Philippe

1 Solution

Accepted Solutions
pradosh_thakur
Master II
Master II

try this

if dont want it to be changed by selection.

=min({1}aggr(Sum({1<Flag = {'CY'}>}VMS_CATTC),AsOfMonthYear))*0.9

else

=min(aggr(Sum({<Flag = {'CY'}>}VMS_CATTC),AsOfMonthYear))*0.9

edit:

You may want to check for the flag. If you want to include all the value or only for 'CY'. edit that as per your requirement.

regards

Pradosh

Learning never stops.

View solution in original post

8 Replies
pradosh_thakur
Master II
Master II

try this

if dont want it to be changed by selection.

=min({1}aggr(Sum({1<Flag = {'CY'}>}VMS_CATTC),AsOfMonthYear))*0.9

else

=min(aggr(Sum({<Flag = {'CY'}>}VMS_CATTC),AsOfMonthYear))*0.9

edit:

You may want to check for the flag. If you want to include all the value or only for 'CY'. edit that as per your requirement.

regards

Pradosh

Learning never stops.
philgood34
Creator II
Creator II
Author

Hi Pradosh

i tried the second expression in a tab to see the result ...

GRAPHIC_SCALE2.png

it seems that it does not work ?

have you an idea ?

Thank's in advance

Philippe

pradosh_thakur
Master II
Master II

1:Try using that in a text box and check the result.

2: Use the expression in MIN(for setting the min value of Y axis for Sales) not in another tab

edit: we missed a '{' . I have edited the same in the previous reply too. so it will work for you now. Let me know if it works and close the thread by marking answers helpful and correct.

try this

min(aggr({Sum(<Flag = {'CY'}>}VMS_CATTC),AsOfMonthYear))*0.9

regards

Pradosh

Learning never stops.
Frank_Hartmann
Master II
Master II

=min(aggr(Sum({<Flag = {'CY'}>}VMS_CATTC),AsOfMonthYear))*0.9

philgood34
Creator II
Creator II
Author

GRAPHIC_SCALE3.png

Sorry .. Still does'nt work ??

philgood34
Creator II
Creator II
Author

Yes i just saw it !

min(aggr({Sum(<Flag = {'CY'}>}VMS_CATTC),AsOfMonthYear))*0.9

min(aggr({Sum({<Flag = {'CY'}>}VMS_CATTC),AsOfMonthYear))*0.9


it works in the tab also


thank's a lot !!!


Regards

Philippe

pradosh_thakur
Master II
Master II

you are still writing it wrong Philippe

not this   ->   min(aggr({Sum(<Flag = {'CY'}>}VMS_CATTC),AsOfMonthYear))*0.9


this

-> =min(aggr(Sum({<Flag = {'CY'}>}VMS_CATTC),AsOfMonthYear))*0.9



Learning never stops.
philgood34
Creator II
Creator II
Author

It's ok , i was to show the mistake

Thank's