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
Forums
Support
Blogs
Events
Discover
Move to Qlik Cloud
Qlik.com
Qlik Services
Qlik Help
Qlik.com
|
Qlik Services
|
Qlik Help
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
ALERT:
QlikView server
communication interruptions following Microsoft Windows Domain Controller security updates
Qlik Community
:
All Forums
:
QlikView
:
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
Labels
(1)
Labels
Subscribe by Topic:
QlikView App Dev
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
Related Topics
AGGR Syntax with IF statement and FirstSortedValue Help
Aggr or Exist function syntax help: New customers added this year
Tags
new_to_qlikview
new to qlikview
qlikview_scripting
qlikview_layout_visuali…
qlikview_deployment
qlikview_creating_analy…
qlikview
script
chart
qlikview_publisher
expression
date
load
table
set_analysis
expressions
macro
qlikview_extensions
analysis
scripting
View All ≫
Community Browser
All Forums
GeoAnalytics
QlikView
Qlik NPrinting