Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
TomBond77
Specialist
Specialist

Aggregation not working

Hi experts

I have defined a KPI "Work hours", based on field "Date". The result below is fine:

TomBond77_0-1689595983831.png

 

If you remove field "Date" the result is like that:

TomBond77_1-1689596093053.png

Any thougths about this behaviour?

Thanks, Tom

 

 

1 Solution

Accepted Solutions
Or
MVP
MVP

Given that we do not know how the measure is defined, no thoughts in particular. Generally speaking, you need to make sure your aggregation level matches your dimension levels in a way that makes sense. If your aggregation returns one value per date, and there is no additional aggregation, then you will get more than one result per month and a null value in the eventual measure as Qlik does not know how to aggregate these results.

View solution in original post

3 Replies
Or
MVP
MVP

Given that we do not know how the measure is defined, no thoughts in particular. Generally speaking, you need to make sure your aggregation level matches your dimension levels in a way that makes sense. If your aggregation returns one value per date, and there is no additional aggregation, then you will get more than one result per month and a null value in the eventual measure as Qlik does not know how to aggregate these results.

TomBond77
Specialist
Specialist
Author

This is the formula:

networkdays ([Date], [Date])* Cap_H_D

TomBond77_1-1689597475783.png

 

 

 

TomBond77
Specialist
Specialist
Author

fixed:

sum(networkdays ([Date], [Date])) * Cap_H_D

TomBond77_2-1689597922618.png