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

How to Use GetSelectedCount With Defined Dim

Hello everyone!

I was wondering if I can use the function GetSelectedCount with a defined drill down dim. I would like to show the selected year(s) and month(s) on a KPI title.

Thanks!

5 Replies
fkeuroglian
Partner - Master
Partner - Master

Yes you can

try this

if(getcurrentfield( "NAMEOFDRILLDOW" )='','Year',Year,

if(getcurrentfield( "NAMEOFDRILLDOW" )='','Month',Month,Day))

Hope help

Fernando K.

idogridish2
Creator II
Creator II

Hi,

You can use GetSelectedCount(->My_DrillDown_Dim) to show the selected count of the current dimension,

but if you wont to show the current year or month you need to use somting like  -

Only({$<Year={'$(=Max(Year))'}>}Year)

And

Only({$<[Month Num]={'$(=Max([Month Num]))'}>}Month)

But for the Month you first need to create a month num field

Num(Month(TempDate)) as [Month Num]

Best Regards.

Anonymous
Not applicable
Author

Thanks Ido!

I tried your expression; however, somehow my defined Dim can't be recognized in the expression!

Any ideas?

Thanks!

idogridish2
Creator II
Creator II

Hi Feras,

It's showing an error but it's working, try it like I did in the previous post.

if you want you can publish the expression.

idogridish2
Creator II
Creator II

Hi fasuhaibani ,

Please mark CORRECT/HELPFUL If the answers were satisfying,

if not please keep posting.

Best Regards.