Unable to filter the data for multiple time selections by dimensions

Hi to all,
I am new in MDX, i have a problem with my MDX query.
Calculated Member Logic:
SUM((OPENINGPERIOD([Date].[YQMD].[Year],[Date].[YQMD].[Month].&[2010-12-01T00:00:00]):[Date].[YQMD].Currentmember),[Measures].[Paid Amt])
Mdx Logic EX:
With Member [MEASURES].[Received_Amount]
AS
SUM((OPENINGPERIOD([Date].[YQMD].[Year],[Date].[YQMD].[Month].&[2010-12-01T00:00:00]):[Date].[YQMD].Currentmember)
,[Measures].[Paid Amt])
SELECT {[MEASURES].[Received_Amount]} On Columns
,[Date].[YQMD].[Year].members On Rows
From [Financial]
If i select multiple time periods in Rows, the query working fine.
but if select multiple periods in where clause it is not responding.
With Member [MEASURES].[Received_Amount]
AS
SUM((OPENINGPERIOD([Date].[YQMD].[Year],[Date].[YQMD].[Month].&[2010-12-01T00:00:00]):[Date].[YQMD].Currentmember)
,[Measures].[Paid Amt])
SELECT {[MEASURES].[Received_Amount]} On Columns
,[Speciality].[Specialty Name].[Specialty Name].members On Rows
From [Financial]
Where {[Date].[YQMD].[Year].&[2012-01-01T00:00:00],[Date].[YQMD].[Year].&[2013-01-01T00:00:00]}
Note:
Each of them is considered from the minimum date in the database to the selected time.
And also the data has to be filtered with respect to each drill down dimension.
If select multiple time periods the same formula has to be applied with respect to the dimensions.
Kindly help me to get out of this problem
Best Regards,
Nagendra

Hi David,
Thanks for your response.
I have a measure, i have to get received_amount in the database from the database starting period to my selection period. Later i have to check by dimensions using same measure. if i select any one period by dimension it's coming, but if i select multiple
periods in filter level by dimensions it's showing no records.
For Ex: 
I have four years data in my database (2010-2013).
In 2010
Bill_Amt
Bill_Date  
Specialty received_amount
1000
10/01/2010 4
600
2000
04/08/2010 2
1000
In 2013
Bill_Amt
Bill_Date Specialty
received_amount
1500
22/02/2013 2
1200
2000
14/03/2013 1
800
In the above scenario,
By Period:
if i go by period i should get,  
Jan'13  ---> 1600
Feb'13  ---> 2800
Mar'13  ---> 3600
Specialty By Single Period:
If i select Jan'13 by specialty
Specialty
 received_amount
2 1000
4 600
If i select Feb'13 by specialty
Specialty
 received_amount
2 2200
4 600
If i select Mar'13 by specialty
Specialty
 received_amount
1 800
2 2200
4 600
Specialty By Multiple selection Periods:
The result should be sum of the individual selection periods by specialty as follows,
If i select Jan'13 & Feb'13 by specialty
Specialty
 received_amount
2 3200
4 1200
If i select Jan'13 , Feb'13 & Mar'13 by specialty
Specialty
 received_amount
1 800
2 5400
4 1800
Regards,
Nagendra

Similar Messages

  • When I add a while loop to the vi "niScope EX Multi-Device Configured Acquisition (TClk)" to acquire data for multiple times, it works but it runs very slowly.

    Because I want to acquire the similar data for multiple times and then take an average to increase SNR, I add a while loop to the vi "niScope EX Multi-Device Configured Acquisition (TClk)".  It works but it runs very slowly (about 1 sec for each iteration). I think I had put the while loop at a wrong position, which makes the vi run from the very beginning in each iteration. So I really want to know where should I put the while loop to improve the speed? I have attached all the vi and subvi.
    Thanks very much.
    Attachments:
    Multi-Device External Clocking (TClk).vi ‏1166 KB
    avgWfm.vi ‏15 KB

    Dear Zainykhas,
    Thank you for posting this to the discussion forums and for uploading some sample code.  I took a lok at the issue you have been having, and it is unclear to me as to why you have placed two for loops around the original while loop.  My understanding is that you want to use the original Sample.vi and want to execute this N times where N is the Max Freq divided by Interval so that you can scan for a range of frequencies.
    Why not just put Sample.vi around one for loop and use the increment counter scaled by the interval to count up towards Max Freq and insert the desired Frequency into the cluster using Bundle By Name?
    Kind Regards,
    Robert Ward
    Applications Engineer, NI
    Attachments:
    Modified - RW.vi ‏48 KB

  • Unable to see the data for the hierarchy in rsa3

    Hi Gurus,
    i am trying to check the data for the standard hierarchy in rsa3,but it is showing an  error message saying that error 6 in functional module rss_program_generate.Please help me out.
    thanks
    bhaskar

    Check if this helps seemed relevant
    Error 6 in function module RSS_PROGRAM_GENERATE
    Error 6 in function module RSS_PROGRAM_GENERATE
    error Error 6 in function module RSS_PROGRAM_GENERATE

  • How to save the data for multiple sittings

    Hello All
    i have one sign up form. user enter only 4 to 5 fields & he may not fill the the manditory field & he left. but data base don’t give the error to him. but next day he will come at then he want to complet his sign up i.e. when he commit the all detail that time all validation will hapen.
    for that i use one table without constrain to store the temarory detail.& use other table (with constrains) for final submition.
    1) i creat the view n entity for temparory table
    2) & also i create views n entity for Final table
    n i create one methos in AmImple file in that file I create one method & expose to client n I drag n drop this method as a ADF Button & in that method I write the following logic
    1) taking the data from one view (from temporary table) & setting the value to other view(Final table).
    using this i set the value from tempary to final table...
    but when user left the manditory field then it allow to submit the data in temparory field but when i copy that data to final table(with constrain) n user submit the data then validation happn i.e. "this fild is mandatory".when i click this error message it goes to first screen.
    I try to implement this functionality…but its not working.
    can u plz suggest other way to implement this functionality in ADF using jdevloper11g
    Thanks in Advance

    User,
    I don't get it :-(
    How do you find out if a user comes back or is completely new? You have to have some information about the user to remember him. At least this information has to be mandatory (even for the temporary table).
    Let's assume you have figured out that the user has been on your page before:
    load his credentials from the temporary table to the form, let him fill in the rest and if he hit save save it in the final table.
    Timo

  • How to write the expression for multiple texbox selection using single textbox status

    Hii frnz,
    can you see  the below image  if the value of the text box is stopped means Red i want to display the entire row(all the texboxs values should be displayd in the red colour only) should be display in Red colour only. 
    How to implemet it is in SSRS reporting side.....
    Thanks ! In Advance....

    Just give an expression as below for the color property
    =IIf(Me.Value = "Stopped","Red","Green")
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • How to filter the data in different sections (e.g. Report Footers)?

    Hi,
    I am using Crystal Reports 11 to generate cross-tables.
    I plan to generate 3 cross-tabs, and each cross-table will be put in a section. For example, cross-tab1 in Report Footer a; cross-tab2 in Report Footer b; cross-tab3 in Report Footer c.
    I know use "Select Expert" to filter data. But, it seems that "Select Expert" filters data for the whole report.
    I want to filter the data for each cross-table separately. For example, filter cross-tab1 based on condition1; filter cross-tab2 based on condition2; filter cross-tab3 based on condition3.
    How to filter the data in different sections (e.g. Report Footers)?
    Thank you in advance.

    Hi,
    Now that you've inserted the subreport just right-click the sub-report and click Edit. The Design page for sub-report should open up.
    You can now insert the cross-tab on the Report Header and insert a record selection formula of your choice.
    Also, suppress all the other sections of the subreport so the Main report only shows the crosstab without any spaces.
    Do the same for all the subreports.
    -Abhilash

  • How to filter the data on Reports from collected from differnet Agents

    1) I have to write a Plug-in which would fetch the same type of data from 7 Agents. I need to generate the report for each Agent separately,This plug-in will be deployed in various different environment. So I will not know the host name as it will be deployed different environment. Can anyone suggest how to filter the data for each agent from the table. I see one solution of using Bind variable for the Target GUID in PL/SQL file. Can you please suggest if there is any other better way of doing this.????
    Also Can you please suggest what are the best ways to debug the OEM Plug-in?
    Thanks Anyway.....

    What I mean filtering data means displaying data for each Agent Seperatly. Assume I have collected Filesystem data from 5 Agents (5 different server). Now I want do display file system data for Agent1 (server 1). How would I fetch it from MGMT$Metric_Current. Currently I use a bind variable
    ??EMIP_BIND_TARGET_GUID?? to filter the data for a Agent from MGMT$Metric_Current view. I compare Target Name entered while deploying Plug-in with the Target_Name column of specified view.Is there any other way of fetching data from this table for a Agent?
    I hope I am prety clear now. My Problem is IO dont want to force user to enter exact Server name while deploying Plug-in.
    Thanks......

  • Unable to get tha data for Residual Order Plan query-0PS_C04_Q0008

    Hi Xperts,
    i have activated  standard query-0PS_C04_Q0008.
    But when i am executing the query i am unable to get the data for "Residual order plan" in the report output..
    As i  checked the transformation and the queries for this, every thing seems ok.
    Could please suggest me the best way to check further or How can i get the data for this field?
    Regards,
    SAP

    Check whether you have data for "Residual order plan" in 0PS_C04.

  • Problem while refreshing the data for the second time using excel services in sharepoint 2013...

    Hi,
    I have migrated my Sharepoint from 2010 to 2013.I am able to get the data at the first time of refresh when I click on refresh for the second time I am getting the empty the sheet.
    below find the flow of refresh
    First Refresh
    On Click of refresh open the workbook with excel services and return the session id.
    Using that session I am invoking RefrehAsync method of excel services
    After refresh completed I am setting the calculation of workbook as automatic(to calculate the formulas) using the same session id
    After setting the calculation as Automatic I am setting the calculation type as full(recalculate) using the same session id.
    Now I am able to see the data
    Second Refresh
    After clicking on refresh instead of opening the workbook I am using the session id(already opened workbook) and setting the calculation type as manual
    I am following the same process from refresh(RefreshAsync) as I have followed in first refresh.
    This time my formulas are not getting calculated because of that I am not able to see the data.
    Could you please let me know that am I missing anything here?
    Is this know issue in Sharepoint2013 excel services as same code is working fine with Sharepoint2010.
    If I close the workbook(session id null) and opens(new session id) for all the refreshes it is working and I am able to see the data.
    Thanks,
    Meenakshi Nagpal
    N.Meenakshi

    I am able to see the data for the second refresh  if I change the data source.If I use the same data source which is used in the first refresh I am not getting the data.Excel services will contact the cubes and calculate the formulas in my workbook.
    Could you please let me know what could be the problem at second refresh while contacting the same data source with same session id?
    Please help me asap.
    Thanks,
    Meenakshi Nagpal
    N.Meenakshi

  • Why is Apple TV showing the same computer multiple times for Home Sharing?

    Why is my Apple TV showing the same computer multiple times for Home Sharing? Also have connectivity issues. Sometimes will lose signal.
    JonRod's music
    JonRod's music
    JonRod's music
    JonRod's music
    JonRod's music
    I recently updated to Yosemite and never had this issue before.

    I'm not 100% sure of the ins and outs, but it's some sort of known issue between Yosemite, Airport and wifi. All you can do is wait for a fix and keep restarting your equipment as and when needed, unless you have the ability to connect your Mac via ethernet.

  • How to set the filter on a report to show the data for the Current Month

    Hi all,
    I am working on a report, which currently has this filter: Date First Worked is greater than or equal to 10/01/2010. This reports show the data for the current month, so at the beginning of each month we have to remember to change the date on the filter.
    Does anyone know what the criteria should say, so that it automatically changes and shows the information for the current month, without us having to go in and change anything?
    Any help would be greatly appreciated!
    Thanks,
    AA

    You need to add a session variable to date fir worked assuming that this is a date field.
    To do this open up the filter on the field then at then press add Variable then "session" and enter the following CURRENT_MONTH into the Server Variable section.

  • I have an external hard drive from my time capsule that stopped working on me. I am attempting to access the data with a hard drive reader on my MAC. I am able to see the drive in disk utility and under system info USB. But I am unable to access the data.

    I have an external hard drive from my time capsule that stopped working on me. I am attempting to access the data with a hard drive reader on my MAC. I am able to see the drive in disk utility and under system info USB. But I am unable to access the data and it does not show on the desktop when connected.

    Ok if disk utility was able to verify the drive I doubt there is any problem.. are you trying to open a TM backup??
    You need to mount the sparsebundle then check the actual info inside the bundle.
    Don't use disk warrior.. if the disk has verified then unless you deliberately deleted files there is nothing that is going to do.
    Pondini has a lot of stuff about getting access to the sparsebundle.
    http://pondini.org/TM/17.html
    But if you have copied info to the TC that is now gone.. and the disk is ok.. I am not sure.. the TC will not have deleted the files itself.

  • Unable to set the date & time screensaver in nokia...

    I enabled the settings in the phone. Once the keypad is locked, the backlight goes off and unable to see the date & time screensaver. The screen saver is visible only after i press any key.

    This is normal behavior most of nokias phone will go black after a period of time to save battery...
    If  i have helped at all a click on the white star below would be nice thanks.
    Now using the Lumia 1520

  • Trying to load music to ipod,  getting "windows - write delayed fail  unable to save all the data for th E: etc

    trying to load music from itunes to my ipod classic  message rec'd WINDOWS - WRITE DELAYED FAILED   UNABLE TO SAVE ALL THE DATA FOR THE E: THE DATA WAS LOST
    is this my ipod  or an itunes problem?

    I spoke to ipod tech support and was told "We do not support itunes. It is only a web based support" Which apparently does not exist.

  • Dear sir/madame,I have tried to use the inbrowser editing capability for Adobe Muse to login to my CMS. To login I have use the exact same FTP details I have used to upload my website, I even checked the page url multiple times but I keep getting the same

    Dear sir/madame,I have tried to use the inbrowser editing capability for Adobe Muse to login to my CMS. To login I have use the exact same FTP details I have used to upload my website, I even checked the page url multiple times but I keep getting the same error (the username and password are invalid for your FTP server. Please check them and try again). The hosting website (Yourhosting.nl) only has this one FTP user, which I cannot expand to more users. Can you please tell me if I am doing something wrong? The url to this page is http://e-divecollege.be/index.html or www.e-divecollege.be

    Dear sir/madame,I have tried to use the inbrowser editing capability for Adobe Muse to login to my CMS. To login I have use the exact same FTP details I have used to upload my website, I even checked the page url multiple times but I keep getting the same error (the username and password are invalid for your FTP server. Please check them and try again). The hosting website (Yourhosting.nl) only has this one FTP user, which I cannot expand to more users. Can you please tell me if I am doing something wrong? The url to this page is http://e-divecollege.be/index.html or www.e-divecollege.be

Maybe you are looking for