
Creator
2023-08-08
04:58 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Sorting based on expression doesn't work after adding "rowno(total)"
Hi all
Ran into a small sorting problem
In this straight table, I want to show the row number to show where stores rank among others sales wise.
But once I add the -rowno(total) measure the sorting that is selected by the Sales column does not work as stores are being sorted by the store number instead.
How can I solve this? hopefully there is a way
Thanks!
Labels (5)
Labels
- Subscribe by Topic:
-
Chart
-
Client Managed
-
expression
-
General Question
-
Visualization
3 Replies


MVP
2023-08-08
10:22 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
AFAIK each usage of rowno() will disable the sorting. You may try to replace the rowno() with rank().
830 Views

Partner - Contributor
2024-11-22
05:06 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi
You can sort the dimension (Store) using the sort by expression in Sorting tab
251 Views

Contributor III
4 weeks ago
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Alternately, you can use dimensionality() function:
If(Dimensionality() = 1, 1, // Data for regular rows 2 // Data for totals )
92 Views
