{"id":15244,"date":"2019-03-29T12:46:03","date_gmt":"2019-03-29T12:46:03","guid":{"rendered":"https:\/\/www.inogic.com\/blog\/?p=15244"},"modified":"2024-01-04T12:32:32","modified_gmt":"2024-01-04T07:02:32","slug":"format-table-data-to-show-horizontally-in-power-bi","status":"publish","type":"post","link":"https:\/\/www.inogic.com\/blog\/2019\/03\/format-table-data-to-show-horizontally-in-power-bi\/","title":{"rendered":"Format Table Data to Show Horizontally in Power BI"},"content":{"rendered":"<h2>Introduction<\/h2>\n<p>In a recent business requirement, we were requested to display account details (account number, Email) horizontally by \u201cAccount Name\u201d in the Power BI Report. When we selected a table to display data in our\u00a0<a href=\"https:\/\/www.inogic.com\/services\/microsoft-power-platform\/microsoft-power-bi-data-visualisation\/\">Power BI<\/a>\u00a0report, it displayed data vertically by default.<\/p>\n<p style=\"padding-left: 160px;\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-20077\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/03\/1Format-Table-Data-to-Show-Horizontally-in-Power-BI-1.png\" alt=\"Format Table Data to Show Horizontally in Power BI\" width=\"470\" height=\"114\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/03\/1Format-Table-Data-to-Show-Horizontally-in-Power-BI-1.png 470w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/03\/1Format-Table-Data-to-Show-Horizontally-in-Power-BI-1-300x73.png 300w\" sizes=\"(max-width: 470px) 100vw, 470px\" \/><\/p>\n<p>We explored more to figure out that we can\u2019t format tables to show values horizontally. So, as a workaround, using a matrix, we formatted the table to display data horizontally.<\/p>\n<p>Here, is how it is done-<\/p>\n<p>1. At first, we need to select Matrix to display data instead of a table<\/p>\n<p style=\"padding-left: 160px;\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-20078\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/03\/2Format-Table-Data-to-Show-Horizontally-in-Power-BI-1.png\" alt=\"Format Table Data to Show Horizontally in Power BI\" width=\"401\" height=\"267\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/03\/2Format-Table-Data-to-Show-Horizontally-in-Power-BI-1.png 401w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/03\/2Format-Table-Data-to-Show-Horizontally-in-Power-BI-1-300x200.png 300w\" sizes=\"(max-width: 401px) 100vw, 401px\" \/><\/p>\n<p><strong>2.<\/strong> Now you need to select the fields that you want to show in the table. In our case we are showing Account name (name) as a Column, Account Number (account number), and Email (emailaddress1) as a Value.<\/p>\n<p style=\"padding-left: 240px;\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-20084\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/03\/Power-BI-2.png\" alt=\"\" width=\"227\" height=\"287\" \/><\/p>\n<p>When we added a text field to the \u2018values\u2019 area, the fieldname was displayed as \u2018First FieldName\u2019 instead of \u2018FieldName\u2019. It also showed the field name as \u201cFirst account number\u201d and \u201cFirst emailaddress1\u201d. So, both field names are renamed.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-20287\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/03\/Format-Table.jpg\" alt=\"\" width=\"413\" height=\"262\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/03\/Format-Table.jpg 413w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/03\/Format-Table-300x190.jpg 300w\" sizes=\"(max-width: 413px) 100vw, 413px\" \/><\/p>\n<p>By default, the selected property for the text field is \u201cFirst\u201d.<\/p>\n<p><strong>Why did it show \u201cFirst Field Name\u201d instead of \u201cField Name \u201c?<\/strong><\/p>\n<p>We used the matrix so it grouped the result based on the \u201cColumn\u201d value. In our example, the column name is \u201cName\u201d (i.e. Account Name) so it grouped the result by \u201cAccount Name\u201d value.<\/p>\n<p>We added Account Number under values and selected property as \u201cFirst\u201d (i.e. First Account Number). Because of this grouping on\u00a0<strong>Account Name,<\/strong>\u00a0it showed only the first Account number where multiple Accounts had the same name.<\/p>\n<p><strong>\u00a0Table<\/strong>: Sample data<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-20288\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/03\/format-table1.jpg\" alt=\"format table\" width=\"281\" height=\"143\" \/><\/p>\n<p><strong>Using Matrix<\/strong>:<\/p>\n<ul>\n<li>When we selected <u>First<\/u> option for \u201cAccount Number\u201d column i.e. First Account Number<\/li>\n<\/ul>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-20289\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/03\/format-table2.jpg\" alt=\"format table\" width=\"446\" height=\"70\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/03\/format-table2.jpg 446w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/03\/format-table2-300x47.jpg 300w\" sizes=\"(max-width: 446px) 100vw, 446px\" \/><\/p>\n<ul>\n<li>When we selected <u>Last<\/u> option for \u201cAccount Number\u201d column i.e. Last Account Number<\/li>\n<\/ul>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-20290\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/03\/format-table3.jpg\" alt=\"format table\" width=\"448\" height=\"70\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/03\/format-table3.jpg 448w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/03\/format-table3-300x47.jpg 300w\" sizes=\"(max-width: 448px) 100vw, 448px\" \/><\/p>\n<ul>\n<li>When we selected <u>Count<\/u> option property for Account Number i.e. Count of Account Number<\/li>\n<\/ul>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-20291\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/03\/format-table4.jpg\" alt=\"format table\" width=\"285\" height=\"90\" \/><\/p>\n<p>So, according to your requirement you need to select property like First, Last, Count, Count (Distinct) and if you want rename the field column name.<\/p>\n<p><strong>3.<\/strong> In final steps you need to turn on \u201cShows on rows\u201d property under Values in Format tab. Please follow our below screenshots:<\/p>\n<p style=\"padding-left: 80px;\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-20081\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/03\/6Power-BI.jpg\" alt=\"Power BI\" width=\"536\" height=\"320\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/03\/6Power-BI.jpg 536w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/03\/6Power-BI-300x179.jpg 300w\" sizes=\"(max-width: 536px) 100vw, 536px\" \/><\/p>\n<p><strong>4.<\/strong> Now as you can see in our below screenshot our table data Account Number and Email are formatted horizontally and showing by Account Name.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-20082\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/03\/7Format-Table-Data-to-Show-Horizontally-in-Power-BI-1.png\" alt=\"\" width=\"615\" height=\"70\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/03\/7Format-Table-Data-to-Show-Horizontally-in-Power-BI-1.png 615w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/03\/7Format-Table-Data-to-Show-Horizontally-in-Power-BI-1-300x34.png 300w\" sizes=\"(max-width: 615px) 100vw, 615px\" \/><\/p>\n<h2><strong>Conclusions<\/strong><\/h2>\n<p>By using Matrix feature of <a href=\"https:\/\/www.inogic.com\/services\/microsoft-power-platform\/microsoft-power-bi-data-visualisation\/\" target=\"_blank\" rel=\"noopener\">Power BI<\/a>, we can aligned values in table horizontally.<\/p>\n<h3><div class=\"su-heading su-heading-style-default su-heading-align-center\" id=\"\" style=\"font-size:13px;margin-bottom:20px\"><div class=\"su-heading-inner\">Incorporating <a target=\"\" rel=\"noopener\">Power BI<\/a> for business processes and exploring its advanced features is now easy!<\/div><\/div><\/h3>\n<p>Did you ask how? Join us at <a target=\"\" rel=\"noopener\">crm@inogic.com<\/a> and our Team of experts at Inogic- Professional Services shall make the transformation a cakewalk!<br \/>\nImagine, Believe, and Achieve with our technical expertise and functional experience<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Introduction In a recent business requirement, we were requested to display account details (account number, Email) horizontally by \u201cAccount Name\u201d in the Power BI Report. When we selected a table to display data in our\u00a0Power BI\u00a0report, it displayed data vertically by default. We explored more to figure out that we can\u2019t format tables to show\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.inogic.com\/blog\/2019\/03\/format-table-data-to-show-horizontally-in-power-bi\/\">Read More &raquo;<\/a><\/span><\/p>\n","protected":false},"author":13,"featured_media":15253,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[16,18,19,45],"tags":[1339],"class_list":["post-15244","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-dynamics-365","category-dynamics-365-v9-2","category-dynamics-crm","category-power-bi","tag-power-bi"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts\/15244","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/users\/13"}],"replies":[{"embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/comments?post=15244"}],"version-history":[{"count":0,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts\/15244\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/media\/15253"}],"wp:attachment":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/media?parent=15244"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/categories?post=15244"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/tags?post=15244"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}