Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
smilingjohn
Specialist
Specialist

Dat

HI ALl, PLease find the aatchment of the qvw file ..

I have a table ..and iam trying to get the days by substituting to date value but its not shoing the desired result for all the Numbers...

Can someon please help me over this

Tahins is advance

4 Replies
swuehl
MVP
MVP

Remember:Use Aggregation Functions!

You won't get a result where there are multiple combinations of EndDate and LoadDate per ReleaseNumber

ReleaseNumber EndDate LoadDate StartDate EndDate-LoadDate
 
6.1114-06-201731-05-201723-05-201714
6.1114-06-201730-06-201723-05-2017-16
6.1114-06-201731-07-201723-05-2017-47

So you need to use aggregation functions in your expression, don't know what is needed in your case maybe something like

ReleaseNumber Max(EndDate)-Min(LoadDate) Avg(EndDate-LoadDate)
14 -16,333333
6.1114-16,333333

Then you will see all dimension values:

ReleaseNumber Max(EndDate)-Min(LoadDate) Avg(EndDate-LoadDate)
398 -6,0948276
6.1114-16,333333
6.1299
6.137272
6.15128128
17.1314-27,263158
17.11189123,5
17.12217143,2
17.290-59,764706
17.359-43,555556
17.487-30,846154
17.585-15,642857
17.682-7,4615385
17.7808,8
17.813838
17.910564
smilingjohn
Specialist
Specialist
Author

Hi Stefan ,

If i add start date as dimensions then it shows me the correct days when i subtract EndDate from Load Date..

Now i need to Hide the Start date dimension ,,,,but iam using oivot table...

How do i deal with this ?

Any suggestion

antoniotiman
Master III
Master III

Hi John,

as Stefan suggests, You need to use Aggregation Function, maybe

Sum(EndDate-LoadDate)

Regards,

Antonio

swuehl
MVP
MVP

Even if you add StartDate as dimension, this won't help for ReleaseNumber that show different combinations of EndDate and LoadDate per StartDate:

ReleaseNumber EndDate LoadDate StartDate EndDate-LoadDate
 
6.1114-06-201731-05-201723-05-201714
6.1114-06-201730-06-201723-05-2017-16
6.1114-06-201731-07-201723-05-2017-47

ReleaseNumber StartDate EndDate-LoadDate

Again, you need to use aggregation functions in your expression (per default, Only() will be applied around each field if you omit the aggregation functions), and it will depend on your requirement, which function(s) you need to use.