Do not input private or sensitive data. View
Qlik Privacy & Cookie Policy.
Skip to main content
Unlock a world of possibilities!
Login
now and discover the exclusive benefits awaiting you.
Expand
Move to Qlik Cloud
Forums
Support
Discover
Blogs
Events
Qlik.com
Qlik Help
Resources
Qlik.com
|
Qlik Help
|
Resources
All community
This board
Knowledge base
Users
Products
cancel
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for
Search instead for
Did you mean:
Ask a Question
Help
Sign In / Register
All community
This board
Knowledge base
Users
Products
cancel
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for
Search instead for
Did you mean:
Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour!
Register Now
Qlik Community
:
All Forums
:
QlikView App Dev
:
Re: Aggr syntax help
Options
Subscribe to RSS Feed
Mark Topic as New
Mark Topic as Read
Float this Topic for Current User
Bookmark
Subscribe
Mute
Printer Friendly Page
All community
This board
Knowledge base
Users
Products
cancel
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for
Search instead for
Did you mean:
cbaqir
Specialist II
2018-09-25
03:52 PM
Mark as New
Bookmark
Subscribe
Mute
Subscribe to RSS Feed
Permalink
Print
Report Inappropriate Content
Aggr syntax help
I have a requirement to show avg number of days from when a generic build resource is populated to when a named resource is populated PER DEFECT_ID.
Generic resources =
RESOURCE with a "_" in the name like clindoc_builder.
Requirement: if no "_" (generic) resource, use start date of RES_STATUS = "ERC - Resourcing" to first date name is populated
=
if
(
count
({<
FACT_ALM_DEFECT_RESOURCE.RESOURCE
= {'*_*'}>}
FACT_ALM_DEFECT_RESOURCE.START_DATE
)=0,
avg
(
aggr
(
Min
(
date
(
FACT_ALM_DEFECT_RESOURCE.START_DATE
),'MM/DD/YY')-
min
({<
RES_STATUS
= {'ERC - Resourcing'}>}
RES_STATUS_START_DATE
)
,
DEFECT_ID
,
[FACT_ALM_DEFECT_RESOURCE.RESOURCE TYPE]
,
FACT_ALM_DEFECT_RESOURCE.RESOURCE
)
),
(
SUM
(
Aggr
(
Min
({<
FACT_ALM_DEFECT_RESOURCE.RESOURCE
-= {'*_*'}>}
date
(
FACT_ALM_DEFECT_RESOURCE.START_DATE
),'MM/DD/YY')-
Min
(
date
(
FACT_ALM_DEFECT_RESOURCE.START_DATE
),'MM/DD/YY'),
DEFECT_ID
)
))
/
count
(
DISTINCT
DEFECT_ID
))
The aggr looks right but the calculation for DEFECT_ID 9986 should be 16 days - 4/25/18-5/11/18 - NOT 8 or 24.
This should only show 16:
Tags:
aggr
qlikview_layout_visualizations
avg_days_generic_build 092518.qvw
Ditto - same here!
All forum topics
Previous Topic
Next Topic
1 Reply
cbaqir
Specialist II
2018-10-02
06:01 PM
Author
Mark as New
Bookmark
Subscribe
Mute
Subscribe to RSS Feed
Permalink
Print
Report Inappropriate Content
bump
Post Reply
Tags
new_to_qlikview
new to qlikview
qlikview_scripting
qlikview_layout_visuali…
qlikview_creating_analy…
qlikview
script
chart
expression
date
load
table
set_analysis
expressions
macro
analysis
scripting
pivot
set
dimension
View All ≫
Community Browser
All Forums
GeoAnalytics
QlikView Administration
QlikView App Dev
QlikView Connectivity
QlikView Integrations
Qlik NPrinting