Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
prees959
Creator II
Creator II

count distinct with excluded dimensions ..help

Hi,

Im trying to use the following expression to display a 100% stacked bar chart :

Count( distinct  {<[Type]={'OuterPerimeter'}>}  PKEY) /

count(distinct <Date, [Fiscal Week],[Year_Month],[Year_Week],[Fiscal Yr],[Fiscal Qtr],[Fiscal Month],DayOfWeek> [ID])

but I'm getting an error on the :

count(distinct <Date, [Fiscal Week],[Year_Month],[Year_Week],[Fiscal Yr],[Fiscal Qtr],[Fiscal Month],DayOfWeek> [ID])


Can anyone advise how to correctly formulate this expression please?


Many thanks,


Phil

1 Solution

Accepted Solutions
luismadriz
Specialist
Specialist

count(distinct {<Date=, [Fiscal Week]=,[Year_Month]=,[Year_Week]=,[Fiscal Yr]=,[Fiscal Qtr]=,[Fiscal Month]=,DayOfWeek=>} [ID])


I hope this helps,


Luis

View solution in original post

2 Replies
luismadriz
Specialist
Specialist

count(distinct {<Date=, [Fiscal Week]=,[Year_Month]=,[Year_Week]=,[Fiscal Yr]=,[Fiscal Qtr]=,[Fiscal Month]=,DayOfWeek=>} [ID])


I hope this helps,


Luis

prees959
Creator II
Creator II
Author

thanks so much!

Works perfectly

Phil