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

Get dimension against highest spend

Hi Everyone,

I have a list of hotels(along with city) and the amount spent in each for a particular date. I would like to display the top hotel city with the highest spent for the month selected in the list box.

Thanks

Anagha

1 Solution

Accepted Solutions
tamilarasu
Champion
Champion

May be this,

='Top hotel ' & Only({<[Hotel Name] = {"=Rank(Sum([Amount]))=1"}>} [Hotel Name]) & chr(13) &  Sum({<[Hotel Name] = {"=Rank(Sum([Amount]))=1"}>} [Amount])

View solution in original post

3 Replies
tamilarasu
Champion
Champion

May be this,

='Top hotel ' & Only({<[Hotel Name] = {"=Rank(Sum([Amount]))=1"}>} [Hotel Name]) & chr(13) &  Sum({<[Hotel Name] = {"=Rank(Sum([Amount]))=1"}>} [Amount])

susovan
Partner - Specialist
Partner - Specialist

Hi Anagha,

Try this attachment,

Warm Regards,
Susovan
anagharao
Creator II
Creator II
Author

Hi Thank you for the solution. Much appreciated

Can you help me in extending the solution to compare top city of this month with its spend in the previous month?

Regards,

Anagha