DAX Not Ordering

m1nkeh

New Member
Joined
Jul 28, 2014
Messages
30
Hi,

Hopefully, I'm doing something silly here... but can anyone tell me why my results won't order correctly?

Query:
Code:
EVALUATE
SUMMARIZE(
    Data
    ,'data'[item]
    ,"TotalAmount", Sum(Data[Amount])
)

Result:
Code:
Item    TotalAmount
Item1   3.95128609469091
Item2   4.24529815278904
Item3   4.19327473518058
Item4   4.11105035459714
Item5   4.41249125008144
Item6   4.17408171753715

Now, i tried to order them (as a set of test data to verify another TOPN function i'd written was working correctly), and couldn't get it to work...

New:
Code:
EVALUATE
SUMMARIZE(
    Data
    ,'data'[item]
    ,"TotalAmount", Sum(Data[Amount])
)
order by "TotalAmount"

Any ideas? - Workbook is here: http://1drv.ms/1TRizj8

As it turned out, the TOPN function i was using was also doing the same thing (incorrectly)...

Thanks,
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
Urgh, solved it... feel like an idiot ;)

Rich (BB code):
EVALUATESUMMARIZE(
    Data
    ,'data'[item]
    ,"TotalAmount", Sum(Data[Amount])
)
order by [TotalAmount]
 
Upvote 0

Forum statistics

Threads
1,224,115
Messages
6,176,477
Members
452,728
Latest member
mihael546

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top