﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / Reporting Services / Reporting Services  / Calculate column group with condition / Latest Posts</title><generator>InstantForum.NET v2.9.0</generator><description>SQLServerCentral</description><link>http://www.sqlservercentral.com/Forums/</link><webMaster>notifications@sqlservercentral.com</webMaster><lastBuildDate>Mon, 20 May 2013 19:00:12 GMT</lastBuildDate><ttl>20</ttl><item><title>Calculate column group with condition</title><link>http://www.sqlservercentral.com/Forums/Topic1423862-150-1.aspx</link><description>I have data----------------------------------------   Date           | region   | Type | Value----------------------------------------01/01/2013     |   Asia    |   B    |   20.0001/01/2013     |   Asia    |   S    |   15.0001/01/2013     |   Europe|   B    |   82.0001/01/2013     |   Europe|   S    |   26.0001/01/2013     |   Africa |   S    |   15.0002/01/2013     |   Asia    |   B    |   10.0002/01/2013     |   Asia    |   S    |   30.0002/01/2013     |   Europe|   B    |   45.0002/01/2013     |   Europe|   S    |   55.0002/01/2013     |   Africa |   S    |   7.00I user matrix to build report -------------------------------------------------------------------------------------------------Date             |             Asia                        |            Europe                         |      Africa          |                   |----------------------------------------------------------------------------------|                   |    B       |      S        |   total  |     B        |      S           |  total  |     S    |  Total  |--------------------------------------------------------------------------------------------------01/01/2013    |    20.00 |      15.00   |  B-S    |     82.00  |      26.00     |  B-S    |   15.00|  B-S    | 02/01/2013    |    10.00 |      30.00   |  B-S    |     45.00  |      55.00     |  B-S    |    7.00 |  B-S    | My Question 1. How can I fix that all type (buy/Sell) have to show in all region column(not show B in Africa)?2. How can I calculate net value for each region/ each day??Many Thanks in advance.</description><pubDate>Mon, 25 Feb 2013 20:27:10 GMT</pubDate><dc:creator>waralees</dc:creator></item></channel></rss>