How to sort the result of PIVOT?

myuser

Registered User.
Local time
Today, 13:34
Joined
Jan 10, 2014
Messages
10
Hello everybody,

I had made a report based on a query last year as bellow, but I don't remember how did I sort the results by "Totally"?

TRANSFORM Count(ID)
SELECT specialist,Count(ID) AS Totally
FROM projects
GROUP BY specialist
PIVOT main_firm;


The results are sorted by Totally:

Specialist totaly A B
-------------------------
Sara 10 6 4
David 7 2 5
Paul 3 2 1

When I run the Query, the results are not sorted, but in the report I see them sorted.

I'd like to create another report similar this one, but I do not know how could I do.


Anybody knows?


Best Regards
 
If you look at the report in design view you will see a panel at the bottom with various options, including sort.
 
If you look at the report in design view you will see a panel at the bottom with various options, including sort.

Thank you, but where is this panel? you mean in footer?
 
Open the report in design view, right click, then choose option "Sorting and Grouping".
attachment.php
 

Attachments

  • SortReport.jpg
    SortReport.jpg
    20.3 KB · Views: 169
Thank you so much JHB.
However I dont think I had sorted result via this menu, maybe there is another way too, But really thanks for your help.

Have a nice day
 
If you want to sort in a report then this is the way, because even if you do a sorting in the query, the report doesn't take notice on it. Did you even try to activate it?
Here is a more detail about grouping and sorting in a report:
http://www.functionx.com/access/Lesson25.htm
 

Users who are viewing this thread

Back
Top Bottom