{"id":3933,"date":"2022-01-17T23:13:00","date_gmt":"2022-01-18T07:13:00","guid":{"rendered":"https:\/\/SUMMALAI.COM\/?p=3933"},"modified":"2022-01-17T23:13:02","modified_gmt":"2022-01-18T07:13:02","slug":"how-to-sort-a-chart-by-different-axis-in-a-power-bi-reports","status":"publish","type":"post","link":"https:\/\/SUMMALAI.COM\/?p=3933","title":{"rendered":"How to Sort a Chart by Different Axis in a Power BI reports"},"content":{"rendered":"\n<p>&nbsp;Important<\/p>\n\n\n\n<p><strong>This article is intended for Power BI users who do not have edit permissions to the report or dataset and who only work in the online version of Power BI (the Power BI service). If you are a report&nbsp;<em>designer<\/em>&nbsp;or&nbsp;<em>administrator<\/em>&nbsp;or&nbsp;<em>owner<\/em>, this article may not have all the information you need. Instead, please read&nbsp;<a href=\"https:\/\/docs.microsoft.com\/en-us\/power-bi\/create-reports\/desktop-sort-by-column\">Sort by column in Power BI Desktop<\/a><\/strong>.<\/p>\n\n\n\n<p>In the Power BI service, you can change how a visual looks by sorting it by different data fields. By changing how you sort a visual, you can highlight the information you want to convey. Whether you&#8217;re using numeric data (such as sales figures) or text data (such as state names), you can sort your visuals as desired. Power BI provides lots of flexibility for sorting, and quick menus for you to use.<\/p>\n\n\n\n<p>And after you&#8217;ve changed the sorting of a visual, you can save a personalized version of that visual. With the&nbsp;<a href=\"https:\/\/docs.microsoft.com\/en-us\/power-bi\/consumer\/end-user-personalize-visuals\"><strong>Personalize this visual<\/strong><\/a>&nbsp;feature, make the changes yourself and when you have the visual the way you want it, save it as a&nbsp;<a href=\"https:\/\/docs.microsoft.com\/en-us\/power-bi\/consumer\/end-user-bookmarks\">bookmark<\/a>&nbsp;to come back to. You don&#8217;t even need edit permission for the report.<\/p>\n\n\n\n<p>Visuals on a dashboard cannot be sorted. But in a Power BI report, you can sort most visuals by one, and sometimes two, fields at a time. For certain types of visuals, sorting is not available at all: tree maps, gauges, maps, etc.<\/p>\n\n\n\n<p>This video demonstrates how to change sort order and some of the newer sorting features now available in the Power BI service.https:\/\/www.microsoft.com\/en-us\/videoplayer\/embed\/RWRpNT<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"get-started\"><a href=\"https:\/\/docs.microsoft.com\/en-us\/power-bi\/consumer\/end-user-change-sort#get-started\"><\/a>Get started<\/h2>\n\n\n\n<p>To get started, open any report that you have created or that has been shared with you. Select a visual (that can be sorted) and choose&nbsp;<strong>More actions<\/strong>&nbsp;(&#8230;). There are three options for sorting:&nbsp;<strong>Sort descending<\/strong>,&nbsp;<strong>Sort ascending<\/strong>, and&nbsp;<strong>Sort by<\/strong>.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/docs.microsoft.com\/en-us\/power-bi\/consumer\/media\/end-user-change-sort\/power-bi-actions.png\" alt=\"bar chart sorted alpha by Y axis\"\/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"sort-alphabetically-or-numerically\"><a href=\"https:\/\/docs.microsoft.com\/en-us\/power-bi\/consumer\/end-user-change-sort#sort-alphabetically-or-numerically\"><\/a>Sort alphabetically or numerically<\/h3>\n\n\n\n<p>Visuals can be sorted alphabetically by the names of the categories in the visual, or by the numeric values of each category. For example, this chart is sorted alphabetically by the X-axis category store&nbsp;<strong>Name<\/strong>.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/docs.microsoft.com\/en-us\/power-bi\/consumer\/media\/end-user-change-sort\/powerbi-sort-category.png\" alt=\"bar chart sorted alpha by X axis\"\/><\/figure>\n\n\n\n<p>To change the sort from a category (store name) to a value (sales per square feet), select&nbsp;<strong>More actions<\/strong>&nbsp;(&#8230;) and choose&nbsp;<strong>Sort by<\/strong>. Select a numeric value used in the visual. In this example, we&#8217;ve selected&nbsp;<strong>Sales Per Sq Ft<\/strong>.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/docs.microsoft.com\/en-us\/power-bi\/consumer\/media\/end-user-change-sort\/power-bi-sort-value.png\" alt=\"Screenshot showing selecting sort by and then a value\"\/><\/figure>\n\n\n\n<p>If necessary, change the sort order between ascending and descending. Select&nbsp;<strong>More actions<\/strong>&nbsp;(&#8230;) again and choose&nbsp;<strong>Sort descending<\/strong>&nbsp;or&nbsp;<strong>Sort ascending<\/strong>. The field that is being used to sort is in bold and has a yellow bar.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/docs.microsoft.com\/en-us\/power-bi\/consumer\/media\/end-user-change-sort\/sort.gif\" alt=\"video showing selecting sort by and then ascending, descending\"\/><\/figure>\n\n\n\n<p>&nbsp;Note<\/p>\n\n\n\n<p>Not all visuals can be sorted. For example, the following visuals cannot be sorted: treemap, map, filled map, scatter, gauge, card, waterfall.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"sorting-by-multiple-columns\"><a href=\"https:\/\/docs.microsoft.com\/en-us\/power-bi\/consumer\/end-user-change-sort#sorting-by-multiple-columns\"><\/a>Sorting by multiple columns<\/h2>\n\n\n\n<p>The data in this table is sorted by&nbsp;<strong>Number of customers<\/strong>. We know this because of the small arrow beneath the word&nbsp;<em>Number<\/em>. The arrow is pointing down which means the column is being sorted in&nbsp;<em>descending<\/em>&nbsp;order.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/docs.microsoft.com\/en-us\/power-bi\/consumer\/media\/end-user-change-sort\/power-bi-sort-column.png\" alt=\"screenshot showing first column being used for sorting\"\/><\/figure>\n\n\n\n<p>To add more columns to the sort order, Shift + click the column header you would like to add next in the sort order. For example, if you click&nbsp;<strong>Number of customers<\/strong>&nbsp;and then Shift + click&nbsp;<strong>Total revenue<\/strong>, then the table is sorted first by customers, then by revenue. The red outline show areas where sort order changed.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/docs.microsoft.com\/en-us\/power-bi\/consumer\/media\/end-user-change-sort\/power-bi-sort-second.png\" alt=\"screenshot showing second column being used for sorting\"\/><\/figure>\n\n\n\n<p>If you Shift + click a second time on the same column, this will change the sort direction (ascending, descending) for that column. Furthermore, if you Shift + click a column you have previously added to the sort order, this will move that column to the back of the sort order.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"saving-changes-you-make-to-sort-order\"><a href=\"https:\/\/docs.microsoft.com\/en-us\/power-bi\/consumer\/end-user-change-sort#saving-changes-you-make-to-sort-order\"><\/a>Saving changes you make to sort order<\/h2>\n\n\n\n<p>Power BI reports retain the filters, slicers, sorting, and other data view changes that you make &#8212; even if you&#8217;re working in&nbsp;<a href=\"https:\/\/docs.microsoft.com\/en-us\/power-bi\/consumer\/end-user-reading-view\">Reading view<\/a>. So, if you navigate away from a report, and return later, your sorting changes are saved. If you want to revert your changes back to the report&nbsp;<em>designer&#8217;s<\/em>&nbsp;settings, select&nbsp;<strong>Reset to default<\/strong>&nbsp;from the upper menu bar.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/docs.microsoft.com\/en-us\/power-bi\/consumer\/media\/end-user-change-sort\/power-bi-reset.png\" alt=\"persistent sorting\"\/><\/figure>\n\n\n\n<p>If however, the&nbsp;<strong>Reset to default<\/strong>&nbsp;button is greyed out, that means the report&nbsp;<em>designer<\/em>&nbsp;has disabled the ability to save (persist) your changes.<\/p>\n\n\n\n<p>Another way to save your changes is with bookmarks. If the report&nbsp;<em>designer<\/em>&nbsp;enabled the&nbsp;<strong>Personalize visual<\/strong>&nbsp;feature for this report, you&#8217;ll be able to change the sort order for a visual (and a lot more) and save it as a bookmark. If you see this icon&nbsp;<img decoding=\"async\" src=\"https:\/\/docs.microsoft.com\/en-us\/power-bi\/consumer\/media\/end-user-change-sort\/power-bi-personalize-visual-icon.png\" alt=\"Screenshot of the personalize visual icon.\">&nbsp;in the visual&#8217;s header, then personalize visuals is enabled.<\/p>\n\n\n\n<p>To learn more, see&nbsp;<a href=\"https:\/\/docs.microsoft.com\/en-us\/power-bi\/consumer\/end-user-personalize-visuals\">Personalize visuals in a report<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"considerations-and-troubleshooting\"><a href=\"https:\/\/docs.microsoft.com\/en-us\/power-bi\/consumer\/end-user-change-sort#considerations-and-troubleshooting\"><\/a>Considerations and troubleshooting<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"sorting-using-other-criteria\"><a href=\"https:\/\/docs.microsoft.com\/en-us\/power-bi\/consumer\/end-user-change-sort#sorting-using-other-criteria\"><\/a>Sorting using other criteria<\/h3>\n\n\n\n<p>Sometimes, you want to sort your visual using a different field (that isn&#8217;t included in the visual) or other criteria. For example, you might want to sort by month in sequential order (and not in alphabetical order) or you might want to sort by entire numbers instead of by digit (example, 0, 1, 9, 20 and not 0, 1, 20, 9).<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>To learn how to sort by another field in the dataset, and you have edit permissions to the report, see&nbsp;<a href=\"https:\/\/docs.microsoft.com\/en-us\/power-bi\/create-reports\/desktop-sort-by-column\">Sort by column in Power BI Desktop<\/a>.<\/li><li>If you are the report designer, you can create new columns in the dataset to address sorting issues with values such as dates and numbers. Contact information for the&nbsp;<em>designer<\/em>&nbsp;can be found by selecting the report name from the header bar.<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/docs.microsoft.com\/en-us\/power-bi\/consumer\/media\/end-user-change-sort\/power-bi-heading.png\" alt=\"Dropdown showing contact information\"\/><figcaption>Ref: https:\/\/docs.microsoft.com\/en-us\/power-bi\/consumer\/end-user-change-sort<\/figcaption><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp;Important This article is intended for Power BI users who do not have edit permissions to the report or dataset and who only work in the online version of Power BI (the Power BI service). If you are a report&nbsp;designer&nbsp;or&nbsp;administrator&nbsp;or&nbsp;owner, this article may not have all the information you need. Instead, please read&nbsp;Sort by column <a class=\"read-more\" href=\"https:\/\/SUMMALAI.COM\/?p=3933\">Read More<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[10,621],"tags":[1056,1057,1058],"class_list":["post-3933","post","type-post","status-publish","format-standard","hentry","category-microsoft","category-power-bi","tag-sort-a-chart-by-different-axis","tag-sort-a-report-by-different-axis","tag-sort-by-different-axis-power-bi"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/SUMMALAI.COM\/index.php?rest_route=\/wp\/v2\/posts\/3933","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/SUMMALAI.COM\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/SUMMALAI.COM\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/SUMMALAI.COM\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/SUMMALAI.COM\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3933"}],"version-history":[{"count":1,"href":"https:\/\/SUMMALAI.COM\/index.php?rest_route=\/wp\/v2\/posts\/3933\/revisions"}],"predecessor-version":[{"id":3934,"href":"https:\/\/SUMMALAI.COM\/index.php?rest_route=\/wp\/v2\/posts\/3933\/revisions\/3934"}],"wp:attachment":[{"href":"https:\/\/SUMMALAI.COM\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3933"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/SUMMALAI.COM\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3933"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/SUMMALAI.COM\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3933"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}