Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
uko223
Contributor III
Contributor III

Show Only One Dimension value in Straight Table

Hi, 

I am trying to create a table in QlikView where the date is displayed as a dimension and the measures are sales for that corresponding day but also the prior year amount at that date. 

Key columns are

Fiscal Date:

Measures:

Actual

Prior Year

 

Both Measures are the same essentially except in the set analysis the "Actual" measure has "Current Month = Y" and the "Prior Year" measure has "Prior Year Current Month - Y". 

Currently, I have the measures for the current date and prior year all set but the issue is that in the fiscal date column, I need to only show the date of the "Actual" measure but it is showing both the "Actual" and "Prior Year" measure date.

See below example: 

Current:

Week 1Fiscal - Cal Days Into PeriodFiscal - DateDayActualPrior Year
Week 112/25/2018Sun$0$73,617
Week 112/24/2019Sun$10,746$0

 

Need

Week 1Fiscal - Cal Days Into PeriodFiscal - DateDayActualPrior Year
Week 112/24/2019Sun$10,746$73,617

 

Is there a way I can use aggr/max to have the "Fiscal - Date" only show the date based on the actual measure?


Thanks!

Labels (1)
4 Replies
rwunderlich
MVP
MVP

Have you tried

Date(Max([Fiscal - Date]))

-Rob

hopkinsc
Partner - Specialist III
Partner - Specialist III

What about..

Aggr(Max(Fiscal-Date),list all dims)

uko223
Contributor III
Contributor III
Author

When I try that expression I get "Error in Calculated Dimension".
hopkinsc
Partner - Specialist III
Partner - Specialist III

I have this as a calculated dimension in one of my QVWs that works..

(aggr(max(Date([Date])),EventType,Company,PeopleCountry,Department,Name,[Is Current Employee]))

So try..

(aggr(max(date(Fiscal-Date)),Dim1, Dim2, Dim3, etc))

Obviously, Fiscal-Date needs to be your actual date field.