Sort A Report by a Summed Amount - sorting

MS Office 365. I have a report sourced by a Query that is grouped, sorted, and subtotaled by Vendor. Is there a way to sort the report by subtotal (=Sum([Amount]))? My goal is to have the subtotals in descending order.

Click the arrow Filter drop-down arrow on Row Labels, and pick Sort by Value.
If you click the Column Labels arrow, pick the field you want to sort first, followed by the sort option you want.
In the Sort by Value box, under Select value, pick the value to sort by.

Related

Power BI visual axis - sort axis so that (blank) not in the middle

Anyone know how to rearrange this in Power BI without the blank appearing in the middle? I know I can transform the blanks into something like '0 - No category assigned' but in Tableau you can create a custom sort. Is this possible in Power BI?
You can sort the columns in the chart
either by category or by value
in ascending or descending order
using the ellipsis menu on the upper right corner.
Your visual is currently sorted "by value in ascending order". Change that to sort "by category in ascending order" and the Blank category will appear on the first position, or use "descending order" to show it on the last position.
You can sort the Category column by another "sorting" column, but naturally this can't include Blank categories, because they result from filtering another table that has "unknown" categories.

Material UI Data grid optional values in menu list

I'm trying to display custom values in a menu. When a column is sortable it will automatically add in a menu list
Unsort
Sort by ASC
Sort by DESC
Filter
I want to hide those values in the menu and leave only Filter. Going through the material ui documentation but couldn't find any solution to that. I still want the column to be sortable but don't display the related items to sorting in the menu.

pivot table not showing totals with conditional formatting

When I apply conditional formatting (gradient background) to a QuickSight pivot table, the Total row does not show any values. If I remove the conditional formatting, the values on the Total row appear. The image shows the same (duplicated) pivot table. The one with conditional formatting shows no Totals. The one without conditional formatting shows Totals.
Anyone else encounter this? I'm stumped... QuickSight Pivot Tables
To apply conditional formatting to the TOTALS in the QS dashboard, you can follow below approach and this should solve your problem:
Click on option at the top right of your pivot visual and click on conditional formatting.
On the various conditions you have mentioned, click on the button besides it as shown in the image below.
enter image description here
After clicking this there will be three checkboxes values, subtotals and totals. Check the totals box and you are done.
Do let me know if it works.

Change default sort order when sort order value is not used

In Magento categories it is possible to set "sort order" values on products (in Admin, Categories), to display certain products beforen others (products with lower value displays first). However; when the value is identical on all items Magento will by default display the oldest items first (low product ID).
Is it possible to change this so that newest items display first instead?
PS: I'm not talking about changing the category sorting to "sort by creation date" or similar. But as an example; let's say you have "sort by price" and 10 products with same price; I would then like the newest items to display first – and not the oldest first (which is default when sort order value is identical on all items).

How (& where) does Magento decide the order of list items in the configurable product view dropdown?

image #1: https://picasaweb.google.com/lh/photo/gDCgo_SHMbnAOmHCh0LQCtMTjNZETYmyPJy0liipFm0?feat=directlink
When examining a Magento configurable test product (ski goggles with a color option), I see that the colors of the dropdown list (see image #1) are ordered like this: White, Blue, Red, Silver. However, when I examine the product in the admin view and select the "Associated Products" tab, there seems to be no correlation between the frontend list organization and the product ID numbers, price, or anything else for that matter.
To demonstrate, if I connect the product ID numbers to the above list, I get: White (170), Blue (169), Red (168), Silver (175) - see image #2 below.
image #2: https://picasaweb.google.com/lh/photo/ES0i3_wZsdiU35w4_MGLrdMTjNZETYmyPJy0liipFm0?feat=directlink
At the time I initially created the configurable product, I had added three color options (168, 169, 170) and they appeared to be displaying in descending order by ID in the dropdown on the frontend. But I just now added another individual product (the color Silver), with an ID of 175, and it doesn't follow this trend.
Question: What logic does Magento use to order these lists, and what file is this function located in? I'm looking for a way to arrange the config. product dropdown list(s) in ASCENDING order, regardless of price or any other factor, ex. from 168-175.
Thanks.
B
Someone with more experience or knowledge may override me on this, but I believe the order the attribute values appear in the drop down list is based on the order they are given on the attribute label definitions when you create the attribute.
Sort order of the attributes is determined in the attribute. The furthest column on the right is called Sort Order.
Otherwise it should sort alphabetically.
I think what you are looking for is to sort dropdown values (i.e. small, medium, large, extra-large) by some value, and not by its label. If this were done, sorting would make more sense. We would be able so sort by increasing or decreasing size, rather than alphabetical (which does not make sense).
In order for this to happen, we would need magento to support enumerations or oordinal values (https://magento.stackexchange.com/questions/20985/get-option-value-by-id-or-attribute-in-magento, Magento - Sort by Position and Name?). There are NUMEROUS requests for this, which are being ignored.
Please be aware, dropdown values can already be re-ordered. In the admin pages, you can simply drag a dropdown value in M2 in order to change its position (M 1.9 calls this "Sort Orer"). However, the question then becomes how to use the position or sort order [s=1 m=2 l=3 xl=4] of the attribute-value for sorting, rather than its label.

Resources