﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / Data Warehousing / Analysis Services  / MDX to calculate measure between two dates / 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>Wed, 19 Jun 2013 22:14:23 GMT</lastBuildDate><ttl>20</ttl><item><title>MDX to calculate measure between two dates</title><link>http://www.sqlservercentral.com/Forums/Topic1411116-17-1.aspx</link><description>Hi , I have a dimension which has the following data Name StartDateEndDate DurationPreSalesStartDate PostSalesEndDate Sales1 01-Jan-201031-Jan-2010 3101-Dec-2009 02-Mar-2010Duration refers to the dfference between start date and end date . PreSalesStart date is nothing but subtracting 31 days ( the duration ) from the start date and PostSalesEndDate refers to the addition of duration period to the End Date . I have a cube which returns me the sales which happened between the start date and the end date . ( I have a separate time dimension which is related to the fact table ) Now when i try to find the sales which happened between the presalesstartdate and startdate . i am not getting null in the display . I have tried using the mdx as follows (presalesstartdate:startdate,measures.sales)Please let me know what i am missing, i am sure it should be something with the logic that i am applying and not on the syntax because i am not getting any #value error while displaying the dataRegards, Savio</description><pubDate>Thu, 24 Jan 2013 06:56:15 GMT</pubDate><dc:creator>savioceg</dc:creator></item></channel></rss>