{"id":371,"date":"2016-09-19T09:19:49","date_gmt":"2016-09-19T09:19:49","guid":{"rendered":"http:\/\/waynenguyen.org\/dev\/?p=371"},"modified":"2016-09-19T09:47:51","modified_gmt":"2016-09-19T09:47:51","slug":"creating-additional-series-from-same-table-column-for-line-graphs-in-ssrs","status":"publish","type":"post","link":"https:\/\/bruceng.com\/dev\/?p=371","title":{"rendered":"Creating additional series from same table column for Line graphs in SSRS"},"content":{"rendered":"<p>I spent quite a lot of time experimenting to be able to do this.<\/p>\n<p>Say you have a table like so<\/p>\n<p>KPI \u00a0 \u00a0 \u00a0 \u00a0Value \u00a0 \u00a0Date<\/p>\n<p>Temp \u00a0 \u00a0 \u00a034 \u00a0 \u00a0 \u00a0 \u00a0&#8230;<\/p>\n<p>Press \u00a0 \u00a0 \u00a012 \u00a0 \u00a0 \u00a0 \u00a0 &#8230;<\/p>\n<p>&nbsp;<\/p>\n<p>And you would like to have 2 lines in the line graph, one for temperature, one for pressure, the series for pressure may use the secondary y axis. The series for pressure may use a totally different chart type(column).<\/p>\n<p>To do this, <strong>don&#8217;t add KPI as a series group<\/strong>, add Date as a category group and add Value twice as values.<\/p>\n<p>for the first Value, use IIf(Fields!KPI.Value = &#8220;Temp&#8221;, sum(Fields!Value.Value, Nothing).<\/p>\n<p>for the second Value, use\u00a0IIf(Fields!KPI.Value = &#8220;Temp&#8221;, sum(Fields!Value.Value, Nothing).<\/p>\n<p>Configure the second value to use secondary y axis and you&#8217;re done.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I spent quite a lot of time experimenting to be able to do this. Say you have a table like so KPI \u00a0 \u00a0 \u00a0 \u00a0Value \u00a0 \u00a0Date Temp \u00a0 \u00a0 \u00a034 \u00a0 \u00a0 \u00a0 \u00a0&#8230; Press \u00a0 \u00a0 \u00a012 \u00a0 \u00a0 \u00a0 \u00a0 &#8230; &nbsp; And you would like to have 2 lines in &hellip; <a href=\"https:\/\/bruceng.com\/dev\/?p=371\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Creating additional series from same table column for Line graphs in SSRS&#8221;<\/span><\/a><\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,14],"tags":[40],"class_list":["post-371","post","type-post","status-publish","format-standard","hentry","category-problems","category-tips-and-tricks","tag-ssrs"],"_links":{"self":[{"href":"https:\/\/bruceng.com\/dev\/index.php?rest_route=\/wp\/v2\/posts\/371","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/bruceng.com\/dev\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/bruceng.com\/dev\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/bruceng.com\/dev\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/bruceng.com\/dev\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=371"}],"version-history":[{"count":2,"href":"https:\/\/bruceng.com\/dev\/index.php?rest_route=\/wp\/v2\/posts\/371\/revisions"}],"predecessor-version":[{"id":373,"href":"https:\/\/bruceng.com\/dev\/index.php?rest_route=\/wp\/v2\/posts\/371\/revisions\/373"}],"wp:attachment":[{"href":"https:\/\/bruceng.com\/dev\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=371"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bruceng.com\/dev\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=371"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bruceng.com\/dev\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=371"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}