未加星标

T-SQL Tuesday #86 : Sorting a Stacked Chart

字体大小 | |
[数据库(mssql) 所属分类 数据库(mssql) | 发布者 店小二03 | 时间 2017 | 作者 红领巾 ] 0人收藏点击收藏

T-SQL Tuesday #86 : Sorting a Stacked Chart
This month's T-SQL Tuesday topic is " SQL Server Bugs & Enhancement Requests ." My T-SQL Tuesday post is about a request for Power BI, which may be a little on the edge of SQL Server as far as T-SQL Tuesday goes. I want to talk about a limitation when sorting a Stacked Chart.

As I mentioned in my previousblog post, I started to play around with Power BI at the end of 2016. Once I was able to get most things working functionally, I wanted to make my dashboard appear and flow a certain way.

The Stacked Chart

First, I charted some important data about canines, which is why Power BI exists. OK, so neither of those statements are exactly or at all true, but I'm using canines for my example. Second, I decided on a "Stacked column chart" to display this wonderful data.


T-SQL Tuesday #86 : Sorting a Stacked Chart
My Fancy Power BI K9 Report with Stacked Chart

Third, I decided that I didn't like the "fox" canine type in the middle. I wanted the stack sorted from greatest value to smallest value. I played with the "Sort By" options in Power BI, however, those only shifted the order of the columns along the X-Axis (by total canine count or the Sample name), not the vertical values within each column.


T-SQL Tuesday #86 : Sorting a Stacked Chart
Power BI Sort By Options

Therefore, when I change it from A >Z sort to Z >A sort, I get this:


T-SQL Tuesday #86 : Sorting a Stacked Chart
My Fancy Power BI K9 Report Sorted Largest to Smallest Total Count

Currently, it's displaying the stacked column in alphabetical order from the bottom up (coyote/red on the bottom, fox/black in the middle, and wolf/gray on the top). I want the ability to display it by the count for each type, not the name. In this example, I want the order of coyote, wolf, and fox. I believed that there must be a way to control the order within a stacked column, so I clicked all over the UI and fired up the Google.

The Connect Item

Finally, I asked a coworker who knows much more about Power BI than I do, and he was familiar with this limitation. This led to me learning about the " Ability to sort the individual stacks within a stacked bar chart " enhancement idea and brings us back to the T-SQL Tuesday topic. You might have noticed that this isn't actually a Connect item. It is, however, a place where Microsoft accepts ideas for Power BI enhancements. If you'd like some control over how items are stacked in a column, please vote for this Power BI idea. It's a little thing, but it's always the small stuff, isn't it?

Thank you, Brent Ozar ( b | t ), for hosting this month's T-SQL Tuesday and providing us with a soapbox for our data-related woes.

本文数据库(mssql)相关术语:熊片数据库 mssql数据库 oracle数据库 pubmed数据库 access数据库 万方数据库

主题: SQLSQL Server
分页:12
转载请注明
本文标题:T-SQL Tuesday #86 : Sorting a Stacked Chart
本站链接:http://www.codesec.net/view/522894.html
分享请点击:


1.凡CodeSecTeam转载的文章,均出自其它媒体或其他官网介绍,目的在于传递更多的信息,并不代表本站赞同其观点和其真实性负责;
2.转载的文章仅代表原创作者观点,与本站无关。其原创性以及文中陈述文字和内容未经本站证实,本站对该文以及其中全部或者部分内容、文字的真实性、完整性、及时性,不作出任何保证或承若;
3.如本站转载稿涉及版权等问题,请作者及时联系本站,我们会及时处理。
登录后可拥有收藏文章、关注作者等权限...
技术大类 技术大类 | 数据库(mssql) | 评论(0) | 阅读(20)