Quantcast
Channel: SQLServerCentral » Data Warehousing » Analysis Services » Latest topics
Viewing all articles
Browse latest Browse all 1341

Calculate the No. of Days for the Date period selected using MDX

$
0
0
Hi ALL, I need help on one the requirements where i need to find the no of days for the Date period Selected . Let me brief the explanation for you I have got a date Hierarchy with Year->Quarter->Month->DateNow I need an output of No. of Days of that Date period selected like [b][u]Example[/u][/b]if he selects "Date" - > 1 Dayif he selects "Month (January) " -> 31 Days "Month (February of 2014) " -> 28 days "Month (February of 2012) " -> 29 daysif he selects "Quarter Q1 2014 " -> 90 Daysif he selects "Year 2013 " -> 365 Daysif he selects "Year 2014 " -> No of Days until the Day in the hierarchyI hope i am clear , I need an MDX function that could help me out here . Hoping for some help :-)Thanks & Regards,Guitar_Player.

Viewing all articles
Browse latest Browse all 1341

Trending Articles