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

Announcements
Note: You may notice some temporary visual or styling issues in the Community. Our vendor is actively investigating.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Item per day in set analysis

I have a data set with Requestors (employees) making orders with an associated creation date. I am looking to put together an expression where it counts the number of unique requestors who ONLY have submitted an order once a week and once a month.

# unique requestors = Count(DISTINCT [Requested By])

Orders = [Order ID]

Date = [Creation Date]

14 Replies
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Please post a small qlikview document that demonstrates the problem.


talk is cheap, supply exceeds demand
Not applicable
Author

Best I can do, data might not be the best but just looking for the right expression.

Kushal_Chawda

There is no Requested By associated with Creation Date in your sample

Not applicable
Author

test.png

Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

As Kush141087‌ says the creation dates ofthe orders and the calendar don't match up:

comm210141.png

That's because the creation dates you load from the excel file are timestamps with a time part too. Make a date and a time field out of it:

Test:

LOAD [Order ID],

     Date(Floor([Requested Created]) as [Creation Date],

     Time(Frac([Requested Created]) as [Creation Time],

     [Requested By],

     [Item Price],

     [Item Quantity],

     [Item Total]

FROM

[..\Data\2015_Epurchase and IS Inovices.xlsx]

(ooxml, embedded labels, table is Test);


talk is cheap, supply exceeds demand
Not applicable
Author

ahh gotcha! what about this one?

Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Ok, that looks better. Now, can you tell me what you're asking. It's not quite clear to me.

I am looking to put together an expression where it counts the number of unique requestors who ONLY have submitted an order once a week and once a month.

Does that mean the requestors that submitted at least one order each week and each month? Or the requestors that submitted at the most one request per week and per month? Or even something else?

In your data there are no requestors that made more than one request per week or per month.


talk is cheap, supply exceeds demand
Not applicable
Author

Since this is blinded data, there probably won't be any concrete examples from the expression.

I am looking to identify requestors that submitted at the most one request per week and the ones that requested at the most one per month? Sorry for the confusion.

Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Ok, at the most one request for each week, i.e. 6 requests in 6 weeks, or just never more then one request for any week, i.e. 0 or 1 requests for each week.


talk is cheap, supply exceeds demand