Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Using set-analysis to filter dimension in line chart

Hi,

I'm trying to filter the dimension of a line chart in such a way that only specific values are shown:

if([Date] < Max({$<[F_FCI_Flag]={1}>}[Date]), MonthName([Date]))


If I put only the set-analysis statement in e.g. a KPI, it yields a value.

However, for the line chart I receive an "invalid dimension" error.

Date is a shared dimension among different fact tables which is why I introduced the "Flag" in order to identify a given facts table.

Can anyone help?

Thanks!

David

1 Solution

Accepted Solutions
MK_QSL
MVP
MVP

or may be

If([Date] < Max({$<[F_FCI_Flag]={1}>}Total [Date]), MonthName([Date]))

View solution in original post

3 Replies
antoniotiman
Master III
Master III

In Calculated Dimension You need to aggregate data.

Try

Aggr(if([Date] < Max({$<[F_FCI_Flag]={1}>}[Date]), MonthName([Date])),Date)

MK_QSL
MVP
MVP

or may be

If([Date] < Max({$<[F_FCI_Flag]={1}>}Total [Date]), MonthName([Date]))

Not applicable
Author

works! Thanks a lot!