{"id":3730,"date":"2019-03-25T17:45:41","date_gmt":"2019-03-25T20:45:41","guid":{"rendered":"http:\/\/xexeu.elipse.com.br\/pt\/kb86136-displaying-a-formulas-value-set-that-transposes-lines-into-columns\/"},"modified":"2019-05-27T13:43:30","modified_gmt":"2019-05-27T16:43:30","slug":"kb86136-displaying-a-formulas-value-set-that-transposes-lines-into-columns","status":"publish","type":"post","link":"https:\/\/kb.elipse.com.br\/en\/kb86136-displaying-a-formulas-value-set-that-transposes-lines-into-columns\/","title":{"rendered":"KB-86136: Displaying a Formula&#8217;s Value Set that transposes lines into columns."},"content":{"rendered":"<div align=\"justify\">\n<p><b>Question:<\/b><\/p>\n<p>Can a Value Set, available on a Formula&#8217;s <b>Values <\/b>tab, be displayed on a table? The E3Browser will display the items in the following format:<\/p>\n<div align=\"center\"><img loading=\"lazy\" title=\"\" src=\"http:\/\/kb.elipse.com.br\/pt-br\/images\/ID5436EN\/Table1.png\" alt=\"\" width=\"270\" height=\"146\" align=\"Baseline\" border=\"0\" \/><\/div>\n<p>And the Formula&#8217;s <b>Values <\/b>tab will be set up as follows:<\/p>\n<div align=\"center\"><img loading=\"lazy\" title=\"\" src=\"http:\/\/kb.elipse.com.br\/pt-br\/images\/ID5436EN\/1.png\" alt=\"\" width=\"444\" height=\"106\" align=\"Baseline\" border=\"0\" \/><\/div>\n<p><b>Solution:<\/b><\/p>\n<p>When a Formula object is added to Elipse E3, four new tables are automatically created to store its settings: <i>TableName_Units<\/i>, <i>TableName_UnitData<\/i>, <i>TableName_Values<\/i>, and <i>TableName_ValueData<\/i>.<\/p>\n<p>To display the name of the value set as well as its value, you will need to join <i>TableName_Values<\/i> and <i>TableName_ValueData<\/i>. Additionally, you will need to transpose the data, and to do so we&#8217;ll use the command PIVOT.<\/p>\n<p>First, let&#8217;s join the tables:<\/p>\n<div align=\"left\"><span style=\"font-family: Courier New;\">SELECT Formula_Values.Name as Formulas, Formula_ValueData.Value as Valores, Formula_ValueData.TemplateID as TempID<br \/>\nFROM Formula_Values<br \/>\nJOIN Formula_ValueData<br \/>\nON Formula_Values.ID\u00a0 = Formula_ValueData.ValueID<\/span><\/div>\n<p>&nbsp;<\/p>\n<div align=\"center\"><img loading=\"lazy\" title=\"\" src=\"http:\/\/kb.elipse.com.br\/pt-br\/images\/ID5436EN\/2.png\" alt=\"\" width=\"302\" height=\"242\" align=\"Baseline\" border=\"0\" \/><\/div>\n<p>After that, the data from <b>TempID <\/b>field will be converted into two columns:<\/p>\n<div align=\"left\"><span style=\"font-family: Courier New;\">SELECT Formulas, [1] as &#8216;1&#8217;, [2] as &#8216;2&#8217;\u00a0 <\/span><br \/>\n<span style=\"font-family: Courier New;\">FROM (<\/span><br \/>\n<span style=\"font-family: Courier New;\">SELECT Formula_Values.Name as Formulas, Formula_ValueData.Value as Valores, Formula_ValueData.TemplateID as TempID<\/span><br \/>\n<span style=\"font-family: Courier New;\">FROM Formula_Values<\/span><br \/>\n<span style=\"font-family: Courier New;\">JOIN Formula_ValueData<\/span><br \/>\n<span style=\"font-family: Courier New;\">ON Formula_Values.ID\u00a0 = Formula_ValueData.ValueID<\/span><br \/>\n<span style=\"font-family: Courier New;\">)AS S<\/span><\/p>\n<p><span style=\"font-family: Courier New;\">PIVOT (<\/span><br \/>\n<span style=\"font-family: Courier New;\">MIN (S.VALORES)<\/span><br \/>\n<span style=\"font-family: Courier New;\">FOR S.TempID IN ([1], [2])<\/span><br \/>\n<span style=\"font-family: Courier New;\">) AS PVT<\/span><\/div>\n<p>Therefore, the table is transposed with the name and values from the value set.<\/p>\n<div align=\"center\"><img loading=\"lazy\" title=\"\" src=\"http:\/\/kb.elipse.com.br\/pt-br\/images\/ID5436EN\/3.png\" alt=\"\" width=\"300\" height=\"161\" align=\"Baseline\" border=\"0\" \/><\/div>\n<p><b>NOTE<\/b>: In this example, we used SQL Server 2014 database.<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Question: Can a Value Set, available on a Formula&#8217;s Values tab, be displayed on a table? The E3Browser will display the items in the following format: And the Formula&#8217;s Values&hellip;<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0},"categories":[743,745],"tags":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v19.8 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>KB-86136: Displaying a Formula&#039;s Value Set that transposes lines into columns. - Elipse Knowledgebase<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/kb.elipse.com.br\/en\/kb86136-displaying-a-formulas-value-set-that-transposes-lines-into-columns\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"KB-86136: Displaying a Formula&#039;s Value Set that transposes lines into columns.\" \/>\n<meta property=\"og:description\" content=\"Question: Can a Value Set, available on a Formula&#8217;s Values tab, be displayed on a table? The E3Browser will display the items in the following format: And the Formula&#8217;s Values&hellip;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/kb.elipse.com.br\/en\/kb86136-displaying-a-formulas-value-set-that-transposes-lines-into-columns\/\" \/>\n<meta property=\"og:site_name\" content=\"Elipse Knowledgebase\" \/>\n<meta property=\"article:publisher\" content=\"http:\/\/www.facebook.com\/elipsesoftware\" \/>\n<meta property=\"article:published_time\" content=\"2019-03-25T20:45:41+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2019-05-27T16:43:30+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/kb.elipse.com.br\/pt-br\/images\/ID5436EN\/Table1.png\" \/>\n<meta name=\"author\" content=\"D\u00e9lio Damin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"D\u00e9lio Damin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/kb.elipse.com.br\/en\/kb86136-displaying-a-formulas-value-set-that-transposes-lines-into-columns\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/kb.elipse.com.br\/en\/kb86136-displaying-a-formulas-value-set-that-transposes-lines-into-columns\/\"},\"author\":{\"name\":\"D\u00e9lio Damin\",\"@id\":\"https:\/\/kb.elipse.com.br\/#\/schema\/person\/be597eff34b5f24af940a55332870778\"},\"headline\":\"KB-86136: Displaying a Formula&#8217;s Value Set that transposes lines into columns.\",\"datePublished\":\"2019-03-25T20:45:41+00:00\",\"dateModified\":\"2019-05-27T16:43:30+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/kb.elipse.com.br\/en\/kb86136-displaying-a-formulas-value-set-that-transposes-lines-into-columns\/\"},\"wordCount\":241,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/kb.elipse.com.br\/#organization\"},\"articleSection\":[\"E3Query\",\"Formulas\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/kb.elipse.com.br\/en\/kb86136-displaying-a-formulas-value-set-that-transposes-lines-into-columns\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/kb.elipse.com.br\/en\/kb86136-displaying-a-formulas-value-set-that-transposes-lines-into-columns\/\",\"url\":\"https:\/\/kb.elipse.com.br\/en\/kb86136-displaying-a-formulas-value-set-that-transposes-lines-into-columns\/\",\"name\":\"[:pt]KB-86136: Displaying a Formula's Value Set that transposes lines into columns.[:] - Elipse Knowledgebase\",\"isPartOf\":{\"@id\":\"https:\/\/kb.elipse.com.br\/#website\"},\"datePublished\":\"2019-03-25T20:45:41+00:00\",\"dateModified\":\"2019-05-27T16:43:30+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/kb.elipse.com.br\/en\/kb86136-displaying-a-formulas-value-set-that-transposes-lines-into-columns\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/kb.elipse.com.br\/en\/kb86136-displaying-a-formulas-value-set-that-transposes-lines-into-columns\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/kb.elipse.com.br\/en\/kb86136-displaying-a-formulas-value-set-that-transposes-lines-into-columns\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"In\u00edcio\",\"item\":\"https:\/\/kb.elipse.com.br\/en\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"KB-86136: Displaying a Formula&#8217;s Value Set that transposes lines into columns.\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/kb.elipse.com.br\/#website\",\"url\":\"https:\/\/kb.elipse.com.br\/\",\"name\":\"Elipse Knowledgebase\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/kb.elipse.com.br\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/kb.elipse.com.br\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/kb.elipse.com.br\/#organization\",\"name\":\"Elipse Software\",\"url\":\"https:\/\/kb.elipse.com.br\/\",\"sameAs\":[\"http:\/\/www.facebook.com\/elipsesoftware\"],\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/kb.elipse.com.br\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/kb.elipse.com.br\/wp-content\/uploads\/2019\/05\/schererelipse-com-br\/logoElipse.png\",\"contentUrl\":\"https:\/\/kb.elipse.com.br\/wp-content\/uploads\/2019\/05\/schererelipse-com-br\/logoElipse.png\",\"width\":161,\"height\":58,\"caption\":\"Elipse Software\"},\"image\":{\"@id\":\"https:\/\/kb.elipse.com.br\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/kb.elipse.com.br\/#\/schema\/person\/be597eff34b5f24af940a55332870778\",\"name\":\"D\u00e9lio Damin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/kb.elipse.com.br\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/fdf251d36430f8dd22144c3f1bc53376?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/fdf251d36430f8dd22144c3f1bc53376?s=96&d=mm&r=g\",\"caption\":\"D\u00e9lio Damin\"},\"url\":\"https:\/\/kb.elipse.com.br\/en\/author\/delio\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"KB-86136: Displaying a Formula's Value Set that transposes lines into columns. - Elipse Knowledgebase","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/kb.elipse.com.br\/en\/kb86136-displaying-a-formulas-value-set-that-transposes-lines-into-columns\/","og_locale":"en_US","og_type":"article","og_title":"[:pt]KB-86136: Displaying a Formula's Value Set that transposes lines into columns.[:] - Elipse Knowledgebase","og_description":"Question: Can a Value Set, available on a Formula&#8217;s Values tab, be displayed on a table? The E3Browser will display the items in the following format: And the Formula&#8217;s Values&hellip;","og_url":"https:\/\/kb.elipse.com.br\/en\/kb86136-displaying-a-formulas-value-set-that-transposes-lines-into-columns\/","og_site_name":"Elipse Knowledgebase","article_publisher":"http:\/\/www.facebook.com\/elipsesoftware","article_published_time":"2019-03-25T20:45:41+00:00","article_modified_time":"2019-05-27T16:43:30+00:00","og_image":[{"url":"http:\/\/kb.elipse.com.br\/pt-br\/images\/ID5436EN\/Table1.png"}],"author":"D\u00e9lio Damin","twitter_card":"summary_large_image","twitter_misc":{"Written by":"D\u00e9lio Damin","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/kb.elipse.com.br\/en\/kb86136-displaying-a-formulas-value-set-that-transposes-lines-into-columns\/#article","isPartOf":{"@id":"https:\/\/kb.elipse.com.br\/en\/kb86136-displaying-a-formulas-value-set-that-transposes-lines-into-columns\/"},"author":{"name":"D\u00e9lio Damin","@id":"https:\/\/kb.elipse.com.br\/#\/schema\/person\/be597eff34b5f24af940a55332870778"},"headline":"KB-86136: Displaying a Formula&#8217;s Value Set that transposes lines into columns.","datePublished":"2019-03-25T20:45:41+00:00","dateModified":"2019-05-27T16:43:30+00:00","mainEntityOfPage":{"@id":"https:\/\/kb.elipse.com.br\/en\/kb86136-displaying-a-formulas-value-set-that-transposes-lines-into-columns\/"},"wordCount":241,"commentCount":0,"publisher":{"@id":"https:\/\/kb.elipse.com.br\/#organization"},"articleSection":["E3Query","Formulas"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/kb.elipse.com.br\/en\/kb86136-displaying-a-formulas-value-set-that-transposes-lines-into-columns\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/kb.elipse.com.br\/en\/kb86136-displaying-a-formulas-value-set-that-transposes-lines-into-columns\/","url":"https:\/\/kb.elipse.com.br\/en\/kb86136-displaying-a-formulas-value-set-that-transposes-lines-into-columns\/","name":"[:pt]KB-86136: Displaying a Formula's Value Set that transposes lines into columns.[:] - Elipse Knowledgebase","isPartOf":{"@id":"https:\/\/kb.elipse.com.br\/#website"},"datePublished":"2019-03-25T20:45:41+00:00","dateModified":"2019-05-27T16:43:30+00:00","breadcrumb":{"@id":"https:\/\/kb.elipse.com.br\/en\/kb86136-displaying-a-formulas-value-set-that-transposes-lines-into-columns\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/kb.elipse.com.br\/en\/kb86136-displaying-a-formulas-value-set-that-transposes-lines-into-columns\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/kb.elipse.com.br\/en\/kb86136-displaying-a-formulas-value-set-that-transposes-lines-into-columns\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"In\u00edcio","item":"https:\/\/kb.elipse.com.br\/en\/"},{"@type":"ListItem","position":2,"name":"KB-86136: Displaying a Formula&#8217;s Value Set that transposes lines into columns."}]},{"@type":"WebSite","@id":"https:\/\/kb.elipse.com.br\/#website","url":"https:\/\/kb.elipse.com.br\/","name":"Elipse Knowledgebase","description":"","publisher":{"@id":"https:\/\/kb.elipse.com.br\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/kb.elipse.com.br\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/kb.elipse.com.br\/#organization","name":"Elipse Software","url":"https:\/\/kb.elipse.com.br\/","sameAs":["http:\/\/www.facebook.com\/elipsesoftware"],"logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/kb.elipse.com.br\/#\/schema\/logo\/image\/","url":"https:\/\/kb.elipse.com.br\/wp-content\/uploads\/2019\/05\/schererelipse-com-br\/logoElipse.png","contentUrl":"https:\/\/kb.elipse.com.br\/wp-content\/uploads\/2019\/05\/schererelipse-com-br\/logoElipse.png","width":161,"height":58,"caption":"Elipse Software"},"image":{"@id":"https:\/\/kb.elipse.com.br\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/kb.elipse.com.br\/#\/schema\/person\/be597eff34b5f24af940a55332870778","name":"D\u00e9lio Damin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/kb.elipse.com.br\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/fdf251d36430f8dd22144c3f1bc53376?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/fdf251d36430f8dd22144c3f1bc53376?s=96&d=mm&r=g","caption":"D\u00e9lio Damin"},"url":"https:\/\/kb.elipse.com.br\/en\/author\/delio\/"}]}},"_links":{"self":[{"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/posts\/3730"}],"collection":[{"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/comments?post=3730"}],"version-history":[{"count":1,"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/posts\/3730\/revisions"}],"predecessor-version":[{"id":6593,"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/posts\/3730\/revisions\/6593"}],"wp:attachment":[{"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/media?parent=3730"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/categories?post=3730"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/tags?post=3730"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}