Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi All,
This is a silly question..but couldn't fix it.I have a chart where I need to add serial number like every time as per user's selection the chart will display number of rows.I need to put a serial number in the chart.
example:
City | Name |
---|---|
CA | Joe |
NY | John |
VA | Kelly |
TX | Lisa |
MN | Leah |
Here I need to add serial number
Serial no. | City | Name |
---|---|---|
1 | CA | Joe |
2 | NY | John |
3 | VA | Kelly |
4 | TX | Lisa |
5 | MN | Leah |
I tried recno() and rowno(),but didn't get the numbers as I expected.Can anyone plz help on this?
Thanks,Pooja
So you have one dimension City and an expression which returns a name?
I think another expression
=rowno()
should just work fine. You could drag the column in front using a straight table.
If you have more than one dimension, try a rowno(total).
Or am I missing something here?
So you have one dimension City and an expression which returns a name?
I think another expression
=rowno()
should just work fine. You could drag the column in front using a straight table.
If you have more than one dimension, try a rowno(total).
Or am I missing something here?
Thanks for your reply.Row(total) worked as I have more than one dimensions.
I have one more question..
Straight Table Chart contains
date1 | date2 | days | row(total) |
---|---|---|---|
11/5/2011 | 11/1/2011 | 4 | 1 |
11/5/2011 | 11/3/2011 | 2 | 2 |
11/10/2011 | 11/5/2011 | 5 | 3 |
11/22/2011 | 11/21/2011 | 1 | 4 |
days and row(total) are expressions.
after adding row(total),now sorting on days(descending) order not working.The days should look like below
days | row(total) |
---|---|
5 | 1 |
4 | 2 |
2 | 3 |
1 | 4 |
is there a way it can be fixed.when I remove this row(total) sorting works fine.
The reason why the sort doesn't seem to work is because rowno() is a chart inter record function, and for these functions the Help states:
Note: Sorting on y-values in charts or sorting by expression columns in straight tables is not allowed when Chart Inter Record functions are used in any of the chart's expressions. These sort alternatives are therefore automatically disabled.
Suppression of zero values is automatically disabled when these functions are used.
Though sorting on numerical should work if I read above lines correctly, in fact it seems it doesn't work correctly.
You are probably using something like =date1-date2 as expression to calculate days, right?
Try moving this expresssion to dimensions as third, calculated dimension. Then sorting on days descending seems to work, having only one expression, rowno(total).
Hay
And If I want It Upsite Down order?