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: 
Anonymous
Not applicable

Default Value

Hi,

I want to show default value as like Service which is having maximum total volume. If service is deselected it should show message as " Please select a Service"

Thanks in Advance

1 Solution

Accepted Solutions
jagan
Partner - Champion III
Partner - Champion III

HI,

Try this

=Aggr(If(Rank(Sum({<Month={'$(=Max(Month))'}, [MET <90]={1}>}[Total Volume])) = 1,[Service]), [Service])

View solution in original post

6 Replies
Anonymous
Not applicable
Author

Any sample?

It seems like functionality adhoc dimension we used in Adhoc Reports...check this?

Adhoc reporting in Qlikview

Go to: Properties -> General -> Calculation Condition -> if(getfieldselection(Services)>0)

Properties-> General -> Error Message(Bottom Side) -> Select Calculation Condition Unfulfilled -> Your Message

deepakqlikview_123
Specialist
Specialist

Please set the message as per balraj's suggestion.

Thanks

jagan
Partner - Champion III
Partner - Champion III

HI,

Try like this

Create a variable

vMaxVolumeService

=Aggr(If(Rank(Sum([Total Volume])) = 1, [Service]), [Service])

Now in Sheet Properties ->Triggers -> Select In Field -> Service and give value as =vMaxVolumeService

jagan
Partner - Champion III
Partner - Champion III

Hi,

For showing Please select a Service when no service is selected

Chart Properties -> Calculation Condition

=GetSelectedCount(Service) > 0

Now

Chart Properties -> Calculation Condition -> Click Error Messages button -> Select Calculation condition unfulfilled



and give below error message in Custom Message box


Please select a Service

and finally OK -> OK

Hope this helps you.

Regards,

jagan.

jagan
Partner - Champion III
Partner - Champion III

Hi,

Check this for max month service

=Aggr(If(Rank(Sum({<Month={'$(=Max(Month))'}>}[Total Volume])) = 1,[Service]), [Service])

Regards,

jagan.

jagan
Partner - Champion III
Partner - Champion III

HI,

Try this

=Aggr(If(Rank(Sum({<Month={'$(=Max(Month))'}, [MET <90]={1}>}[Total Volume])) = 1,[Service]), [Service])