Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
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