Fetch-Xml based report (to count User Access in the last 6 months ) for Microsoft Dynamics CRM Online

Hi,
I have created a User Access report for CRM on-premise using SQl query in the following format. One row corresponds to one user in organization. Currently, I am using Microsoft Dynamics CRM Online trial version and have two users in my organization.
I want to the same report for CRM Online environment. Only Fetch-Xml based custom reports are supported by CRM online environment hence this SQL query cannot be used.
I have already written fetch-xml query to retrieve user access records ("audit" entity records) in "last-x-months" (where x = 1,2,3,4,5,6) as below.
I am able to retrieve the records with "last-x-months" condition at a time, for example, the last-2-months  in my fetch-xml query only.
For, example, when I retrieve the records in the last-2-months, it also includes the records in the last month. I want to count the records in the 2nd month only that is the difference between these two. The difference will be my 2nd column.
Similarly, I want the other columns.  
For the case in the above example, I have created the two separate datasets to get the record-count for the last month and last-2-months. But, I am not able to use the two datasets in the same table in my report and hence not able to calculate the difference.
Is there any way to solve this problem?

Hi,
I have modified my Fetch-XML query to retrieve all the required User Access records and removed aggregation and counting and grouping from the query as well. Did grouping and counting in SSRS. Now the report works fine as shown in the above picture.

Similar Messages

  • Error while uploading report in Microsoft Dynamics CRM Online

    I have created a report using fetch-xml query for Microsoft Dynamics CRM Online. In this field, I have created a custom enity which has "Last Accessed Date Time" field of type "DateTime". This field stores the value in GTM. I am retrieving
    the value of this field using fetch-xml query. Also, I want to calculate the difference between the current DateTime and the value (in the locale and not in GMT) of this field in "Hours Minutes Seconds" format. I
    have written an expression for the same in reportas follows.
    (IIF(((INT((DateDiff(DateInterval.Second, DateTime.SpecifyKind(DateTime.Parse(Fields!new_lastaccesseddatetime.Value), DateTimeKind.Utc).ToLocalTime(), DateTime.Now))/60))>60), INT(((((DateDiff(DateInterval.Second, DateTime.SpecifyKind(DateTime.Parse(Fields!new_lastaccesseddatetime.Value),
    DateTimeKind.Utc).ToLocalTime(), DateTime.Now)))/60)) / 60), 0))
    & "Hours"&
    (IIF(((INT((DateDiff(DateInterval.Second, DateTime.SpecifyKind(DateTime.Parse(Fields!new_lastaccesseddatetime.Value), DateTimeKind.Utc).ToLocalTime(), DateTime.Now))/60))>60), INT((((DateDiff(DateInterval.Second,DateTime.SpecifyKind(DateTime.Parse(Fields!new_lastaccesseddatetime.Value),
    DateTimeKind.Utc).ToLocalTime(), DateTime.Now)))/60) Mod 60), INT((DateDiff(DateInterval.Second, DateTime.SpecifyKind(DateTime.Parse(Fields!new_lastaccesseddatetime.Value), DateTimeKind.Utc).ToLocalTime(), DateTime.Now))/60)))
    & "Minutes" &
    ((DateDiff(DateInterval.Second, DateTime.SpecifyKind(DateTime.Parse(Fields!new_lastaccesseddatetime.Value), 
    DateTimeKind.Utc).ToLocalTime(), DateTime.Now)) Mod 60)
    & "Seconds"
    This works fine in visual studio. But, when tried to upload the same report in CRM Online organization, it gives the following error.
    Any idea how to solve this issue?

    I have found the following useful link-
    - support.microsoft.com/.../en-us
    The error occurred because I have used some functions("Int", "DateTime.SpecifyKind(DateTime.Parse(Fields!new_lastaccesseddatetime.Value), DateTimeKind.Utc).ToLocalTime()") in my ssrs report which are not supported by CRM Online., though
    it works fine in visual studio.

  • Way to allow the user access to the saved lists of this Z report

    We have a Z report that we want to run at midnight each Sunday and then view the output/layout first thing Monday morning. We can schedule the report to run but it appears that the only way we can save the output as a 'file' for later viewing is by using the "Save with ID" option, which puts the output into a SAP 'saved list'.
    The problem with this is that it doesn't appear to be possible to access that list from the Z-report - it would appear that you have to go into SQ01 and use the 'saved list' button. This means giving the Z- report user access to SQ01 as well as Z-report, which, for security (SOD) reasons we don't want to do.
    We can run the report in foreground with the output option "File store" and save the output as a file to a specified location,. But this option doesn't appear to be available when the report is scheduled as a background job. If this is done, the background job runs but there's no output anywhere, as far as we can tell.
    So what want is to run the report in background but with the output option 'File store' or equivalent (i.e. an output stored somewhere that the report user can view). Is this not possible, or have we missed something in setting up the report run?
    Or is there a way to allow the user access to the saved lists of this Z report without giving them T-code SQ01?
    Thanks

    Hi !
    I just wonder if the answer from Varishtb below did solve your propblem.
    I have exactly the same problem as you. I also want to be able to look at the saved list without using the sq01.
    If you solved it I will be grateful to get the solution.
    regards Lars
    answer:
    You can call the infoset query directly from a transaction code. There's
    no need to copy it as a 'Z-report' (or as a custom report). In fact,
    everytime you're copying an infoset query to a report, you're calling
    for problems the next time you face an upgrade. (That is because SAP
    changes the internal logic used to handle the infosets queries from
    version to version)
    We're using some infoset queries and they work fine this way.

  • How to get the current month for a variable based on info object 0FISCPER3

    Hie Gurus
    I am working on the financial reports i am failing to derive the Current month from the variable based on infobject 0FISCPER3 PERIOD .
    I would also like to get the same month from the prevoius year. Any ideas?

    If I understood correctly, you need in your repot
    Current Month Plan This year || YTD Plan This Year || Current Month Plan Last Year || YTD Plan Last Year
    Your variable 0I_FISCPER3 must be on the object 0FISCPER3 which is nothing but just the Fiscal Period. This variable is a user entry mandatory Interval variable.
    if you are entering a range in the input screen for this variable, you will get cumulative values. If you just need to get the value for a month in first column your report, you will have to create another variable of type Customer Exit which will read the "To value" entered for the variable 0I_FISCPER3 and columns for Current Month should be restricted on this variable.
    if you are entering a single value in the selection screen of this variable, current month column should be restricted on this variable with "Equal To" operation and YTD colmns should be restricted to "Less Than Equal to" operator with this variable.
    0FISCPER3 just have posting period and not year, so you will have to use varialbes for 0FISCYEAR separately.
    Please let us know if it helps or if you are using some other variable based on 0FISCPER3 or 0FISCPER.
    Regards,
    Gaurav

  • No Microsoft Dynamics CRM User Exists

    Hi
    We are in the process of deploying UPK 3.5.1 to a number of users in the business. Once they have entered the library location in the Profile Wizard and click next they receive the following Server Error message.
    "No Microsoft Dynamics CRM User exists with the specified domain name and user ID."
    Can you advise.
    Pip

    Hi RossArn
    Please follow following blog written by me and I hope your problem will be resolved:
    http://social.technet.microsoft.com/wiki/contents/articles/29628.ms-crm-administration-disable-users-with-best-practices.aspx
    Ali Hassan

  • Fill Interactive report Filter function with the last month

    Version: APEX 4.1
    Functions: Interactive Reports - Filter
    Image: http://i.imgur.com/tG7si.png
    http://i.imgur.com/UCoZ5.png
    Is it possible to have a button when click would filter the last month of whatever the current date is. (Without making a 2nd interactive report)

    Hi,
    I went quickly over this:
    http://anthonyrayner.blogspot.com/2008/07/dynamic-date-filtering-in-interactive.html
    This should help. it shows you how to prepare the URL of the wanted report. and you can choose button action Redirect to URL.
    There is more ... give me one minute :)
    Ok.. This is what you need:
    http://docs.oracle.com/cd/E23903_01/doc/doc.41/e21676/apex_util.htm#CHDDDFBF
    Regards,
    Fateh
    Edited by: Fateh on Jun 15, 2012 11:17 AM

  • TS3988 I switched ISP so no longer have access to the email address for my iCloud account how do I change it. Why isn't it as easy as changing my Apple ID.?

    I switched ISP so no longer have access to the email address for my iCloud account how do I change it. Why isn't it as easy as changing my Apple ID.?

    Hi dawn192,
    Welcome to the Support Communities!
    The articles below may be able to help you with this issue.
    Click on the links to see more details and screenshots. 
    Frequently asked questions about Apple ID
    http://support.apple.com/kb/HT5622
    Apple ID: Changing your Apple ID
    http://support.apple.com/kb/HT5621?viewlocale=en_US
    Cheers,
    - Judy

  • How many Users did use our Portal in the Last Month?

    Hi Community,
    just a question. I have to find out how many people in the last month did use our SAP Portal. Is it possible to find this out?
    Thanks
    Greets
    Bjoern

    Hi,
    The answer you are looking for is [Portal Activity Report|http://help.sap.com/saphelp_nw70/helpdata/EN/58/728ea01cf64fff996b827f2a06f9b1/frameset.htm]
    Good Luck!
    Sandeep Tudumu

  • Utilizing XML Publisher Report Bursting Program user-variables

    When running the XML Publisher Report Bursting Program against a bursting control file, I see the following in the log:
    Bursting propertes.....
    {user-variable:cp:territory=US, user-variable:cp:ReportRequestID=4413342, user-variable:cp:language=en, user-variable:cp:responsibility=20678, user-variable.OA_MEDIA=http://hostname:8000/OA_MEDIA, burstng-source=EBS, user-variable:cp:DebugFlag=N, user-variable:cp:parent_request_id=4413342, user-variable:cp:locale=en-US, user-variable:cp:user=USER, user-variable:cp:application_short_name=XDO, user-variable:cp:request_id=4413368, user-variable:cp:org_id=204, user-variable:cp:reportdescription=Report Name, user-variable:cp:Dummy for Data Security=Y}
    I would like to reference one or more of these in
    1. My bursting control file
    2. My template (to be output in final PDF).
    I cannot seem to get this to work in my bursting control file by referencing:
    ${cp:user} (note that it just returns the word 'null' here instead of the value)
    nor can I get it to work in my RTF template by referencing:
    <?xdoxslt:get_variable($_XDOCTX, ‘cp:user’)?>
    Should this work, or I am missing something?
    Thanks

    Thanks Ike, it likely would. The thing I keep coming back to is an example in the BIP Developer's Guide that suggests you can set a property and have it made available:
    DocumentProcessor dp = new DocumentProcessor (cfgFile, xmlFile, dir);
    Properties prop= new Properties();
    prop.put("user-variable:ADMIN_EMAIL","[email protected]");
    dp.setConfig(prop);
    dp.process()
    Seems to me that the work going on behind the scenes here (based on log statements alone) suggest the same sort of integration.. but I suppose not.
    Thanks

  • END USER accessing only the Output of report

    Hi,
    I'm creating reports based on queries, right now we are planning to give view access to end users, but my doubt if end user hits view on the report the query runs everytime and produces the report, what I want to achieve is that the we schedule the report before night and end user will only view the PDF output the query produces by the scheduling, How can I achieve this?

    So do we need to give the user access to schedule button as well? and Do you mean run report online option?
    Any update please?
    Edited by: user8937215 on Aug 5, 2010 7:55 AM
    E

  • Count user Log in the ERP

    Hi,
    Help me please! I want to know who are the users that are currently log in the ERP and count user not over license, separate module
    I don't know correct the methods.
    thank

    If I understand your question right, Oracle EBS provides out of the box report on this.
    goto navigation
    system administration/Oracle applications manager/application usage.
    fill in needed info and will get the current usage to determine the licesning impact,etc.
    Thanks....

  • Missing a User access in the log-on picture

    Lacks a user access to log on picture after start-up in Yosemite. In user administration there has been created two user entries - an administrator and a normal access. The normal access is not visible from the log on picture, and it is only possible to access through the visible user (Adm.) and then switch the user by switching in the upper right corner!!!
    Wish, possible for all users to log on from the boot up image.     (Adm - Normal - Guest access)

    same issue:
    retina MacBookPro mid2012. Clean install of OS X Yosemite 10.10
    I'm randomly missing an account at login screen after reboot.
    Sometimes I can fix it with booting into my initial account 'Kevin' (userid 501) and then changing to different login 'Christina' (userid 502).
    But if I log out from my account, the second account is missing. Same if I do a reboot.. This have me in stitches as I ofcause has the need for privacy from each account.
    Both accounts are set up as admins, guest is deactivated.
    rMBP 16gb sep2012.
    userid 501:
    home directory: /Users/Kevin
    userid 502:
    home directory: /Users/Christina
    apart from that... I have loads of problems with Bluetooth, and hand-off only working 1 way (5s with 8.1) where only iOS -> OS X works, not vice-versa.

  • 10.6.8 upgrade - I want Apple to fix it, not me have to do the work.  I no longer have access to the header menu for the desktop.  No History, no QUIT.  Is Apple aware? Planning a fix for the fix?

    I installed the 10.6.8 upgrade over the weekend and now have no access so the main desktop menu.  I am having to hit power off button to power down.  The links work for one application load after I boot up.  Cannot tell if it is is just Safari or not.  DOes Apple monitor these postings and do additional testing to correct?

    balto,
    You'll have to forgive me but being from an IT background there are certain things you take for granted, such as backups!
    That said when I really needed my Time Machine backup a couple of years ago, it did an epic fail on me.  Ever since I have been backup paranoid.
    I now have approx 6 current backups of data including one offsite.  Call me over cautious but its better to be safe than sorry!!  I now use a combination on Time Machine and Carbon Copy Cloner to produce periodic backups and also bootable clones.  With external drives being so cheap these days there really is no excuse.
    So taking on board your comments and those of others  :-
    i)     Take a backup, either via Time Machine or some other cloning route such as Carbon Copy Cloner.
    ii)     Repeat step i) but to another disk.
    iii)     Download the COMBO OS update - NOT the delta one.  It will take longer but its worth it.
    iv)     Turn off Mac
    v)     Disconnect ALL external peripherals except keyboard/mouse e.g those devices required to boot.
    Vi)     Turn off Mac
    vii)     Boot Mac in Safe mode by press shift key whilst switching on the Mac and leave shift pressed until Apple logo appears.  Mac will take longer to boot but will present user login with red Safe mode tag.  Login.
    viii)     Run a permissions repair from Disk Utility.
    ix)     Run COMBO updater and allow the Mac to reboot.
    x)     Login as normal but immediately run permissions repair again from Disk Utility.
    xi)     Reboot Mac for final time again and all should now be well.
    Think that should just about do it though as with everything be careful and use at your own risk.
    Regards
    NIALL 8-)

  • Counting rows respect to the last status assumed

    Hi,
    I'm analyzing dossier data in a PowerPivot table.
    In particular, I've three tables: the Dossier table, the Calendar table (date, week, month, quarter, semester and year) and the Status table for dossier.
    In a same day, a dossier can change his status more times (from created to active, from active to closed, and so on): so in the Dossier table I've more dossier occurences with a status date and a sequence column to replace the time. For a new date, the sequence
    column restarts to 1.
    I need to count the dossier respect to the selected period (a specific date, a specific month, a specific year, and so on) by considering only the dossier with the last status date minor or equal than the selected period.
    Fe, for these dossier data:
    Dossier id      Status      Status_Date     Sequence
          1            Created    11/02/2015           1
          1            Active       11/02/2015          2
          1            Closed      11/02/2015          3
    I must consider the closed dossier row with sequence = 3 when I select '11/02/2015' date from my calendar. The resulting dossier count has to be equal to 1.
    I've created this DAX measure:
    LAST_DOSSIER_STATUS_NUMBER:=COUNTROWS(
    FILTER( VALUES(Dossier[DOSSIER_ID]);
    CALCULATE(MAX(DOSSIER[SEQUENCE])) = CALCULATE( MAX(DOSSIER[SEQUENCE]) ; all(dossier[status_id]) ) ) )
    It functions only if I select a date, but not if I select the month (february) or the year (2015).
    I've tried to use FILTER and LASTDATE functions inside the CALCULATE( MAX(DOSSIER[SEQUENCE]) ; all(dossier[status_id]) ) expression but with no results.
    Any helps for me, please? Thanks

    Hi Imke,
    for a specific day I could have three status change for a specific dossier, and so I could have three same occurence for a dossier: DISTINCTCOUNT(Dossier[DOSSIER_ID]) should return 1, but respect which status? If I should put the STATUS_ID on the rows of
    a pivot table I could see 1 for the created status, 1 for the active status and 1 for the closed status. The goal is to show only 1 value for the closed status, that is the last status assumed for the specific dossier.
    For the data posted next:
    when I select 11/02/2015 as date I've the desired behaviour
    but when I select 2015 as year I don't have the wanted behaviour (see dossier_id 1 and dossier_id 4):
    The desired behaviour is to see for dossier_id 1 only status_id 4 and not status_id 2, for dossier_id 4 only status_id 4.
    As row labels I've dossier_id and status_id, as filter I've a Time Hierarchy (date, month, year) built on a calendar table.
    Thanks

  • Error while installing the Microsoft Dynamics CRM 2013 Report Authoring Extension set up

    HI Experts,
    I am trying to install Report Authoring extension tool to work with MS CRM 2015 online reports but unable to install, getting below error even though I am having VS 2013, SQL Server 2014 and Data tools for VS 2013 installed on my machine.
    Please help me to fix this issue.
    When I double click the error getting below error.
    Error : Business Intelligence Development Studio is not installed for Microsoft SQL Server Reporting Services.
    When I click the details , getting below error.
    Thanks
    Baji Rahaman

    The Report Authoring Extensions (any version) don't support VS 2013. Currently the Crm 2015 Report Authoring Extensions support VS 2012 and VS 2010, and the Crm 2013 Report Authoring Extensions supports only VS 2010.
    By the way, the error you posted suggests you're trying to install the Crm 2011 Report Authoring Extensions
    Microsoft CRM MVP - http://mscrmuk.blogspot.com/ http://www.excitation.co.uk

Maybe you are looking for

  • Report server is not working in version 10.1.2....

    Hi all From long time i am trying to run the report server in Forms [32 Bit] Version 10.1.2.0.2 (Production) without Network( IP) configuration.But i did not do it.But its working fine with IP address.Is it possible to run report server without IP ad

  • Three decimal places in my calculation

    Hi, I have a division calculation, a/b where both a and b are int's. now when i want the result upto 3 decimal places. i have done this. Double d = a/b; DecimalFormat c = new DecimalFormat("0.###"); c.format(d); System.out.println(d); Still I am unab

  • ISE MAR cache

    Does anybody know what's going to happen if one changes the MAR cache timeout/aging setting found under Identity Management > External Identity Sources > Active Directory > Advanced Settings? Are the current cache entries going to get cleared or are

  • Problem in AD Integration with WLS

    Hello, I have successfully integrated Active directory with weblogic server. And i am able to see user list in security Realm -> myrealm -> Users and Groups. I am also able to login to webcenter spaces and also to content server. In my active directo

  • Support for file extensions with more than three characters when saving - I want my FLAC!

    Why does the Wave Editor still drop characters from filenames with more than three character extensions when you save a file? But since -opening- a FLAC file with an extension of ".flac" doesn't get chopped to ".fla", why does Audition still chop off