Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Including Record # in one Document

Good morning,

I need to include in one document a record number following some criterias. I attached a Excel sheet explaining the topic. If somebody can help me I will appreciate.

Thaanks in advance

1 Solution

Accepted Solutions
Not applicable
Author

Looking into Discussions History I find the solution. You can access to the following link:

http://community.qlik.com/message/1802#1802

Thanks a lot to everybody for your help.

Regards

View solution in original post

12 Replies
alexandros17
Partner - Champion III
Partner - Champion III

You can do this in two ways:

1) in the chart by using RowNo() in one expression that numbers rows according to theirs positions.

2) in the script, setting the order and addina a new column with rowno()

hope it helps

Not applicable
Author

Thanks fot your quick response. As you can see if I include the rowno(). Here are the resutls:

WEEKSKNPriceCATEGORYrowno()
5.415.129--
944243746511
9310111.73812
93352072.27513
944244517814
91457343.68515
94425264916
924801028417
91186991.40418
944239927019
956535021110
91342871.014111
99957063112
9602401.781113
92275521.159114
93156721.916115
9557137982116
9146854906117
95570131.079118
93129401.062119
96762091.107120
929726288121
9331902815122
9102261978123

The result is not sorted by 'Price'. Thanks

alexandros17
Partner - Champion III
Partner - Champion III

Yes, it's true,

in the sort tab (properties of the chart) you have to sort by price in descendent order.

Not applicable
Author

I already tested, but when you have a rowno() column and uses the sort by price is not working

alexandros17
Partner - Champion III
Partner - Champion III

You have to sort SKIN (promote it) setting the expression (descending) as sum(price) (if this is the expression you use for price ....

Hope it helps

Not applicable
Author

Hello,

In the sort Tab, sort with 2 criteria :

first the category then the expression you use to calculate the Price ( Sum(Price) for example.

Not applicable
Author

Sorry,

But I don't understand whar do you mind.

alexandros17
Partner - Champion III
Partner - Champion III

I suppose that WEEK and SKN (Not SKIN) are dimensions and Price, Category and RowNo are expressions.

If this is true you have to define the sort criteria.

Go to the sort tab:

1) select SKN and with button promote it to the top, setting the sort criteria with the expression (click the checkbox) and use as expression the same expression you use for price.

2) select other fields in sort tab and uncheck sort criteria

I Hope I have been clear, if not, let me know

Not applicable
Author

It's not working. I have as Dimension SKN, CATEGORY and I sorted by CATEGORY and after SUM(PRICE)