How to filter on rolling date?

is there a reference page somewhere for all the power query built in date functions? ie dateadd()?
I'm reading data from an RSS feed (http://sentinel.ga.gov.au/RSS/sentinelrss.xml) but want to filter to recent observations (12rs) only.
Adding a date filter using the gui adds a hardcoded #datetimezone(2014 etc etc) call
I want to do something like
= Table.SelectRows(ChangedType4, each [OBS Time] > 
DateTimeZone.FixedUtcNow minus 12hours)
is this possible? I see AddDays()/AddWeeks() methods but no add hours/minutes/seconds
Jakub @ Adelaide, Australia

There is no library function to do arithmetic over a DateTime value at the level of hours, but you can use the #duration directive to create a 12 hour duration and subtract it from the original datetime value.
For example:
Table.SelectRows(ChangedType4, each [OBS Time] >  #duration(0,12,0,0)
You can read more about it in Power Query language specification:
http://go.microsoft.com/fwlink/?LinkID=320633
Zafar Abbas

Similar Messages

  • How to filter the Event Data from the EventHub when consuming data?

    We know the EventHub has the filter function. I'm designing a new solution for a customer and it looks like EventHubs are great for sending and receiving our near-realtime
    data. Downside is when receiving the data, we receive all data of all our devices in the world. Most of the time, our clients only want to see data of one (or a few) device. We could of course filter the data by ourselves, client side, but
    this would cost a lot of bandwith.
    From the
    FeedBack, it said Filters will be tied to Consumer Groups. And I Check the Consumer Group Class, it has the Create Time and Update Time, but it
    has no set Function,
    So how to use the Consumer Group to filter Event Data during the Receiving data?
    Because in our solution, we use the EventHubHost to consume data, if our service bus worker role restart, we will receive all data in the EventHub, but we only want
    to receive the latest data,
    If we use the EventHubHost to consume data, can we also to filter data? If yes, how to do?
    Thanks very much!

    Yes right,
    AFAIK there isn't a filter feature for Event Hub. The only way to have now is to put a specific property inside your EventData that consumer group can check to filter if it is interested in the data or not.
    Paolo.
    Paolo Patierno

  • HTML Dataset - how to filter based on data values within columns

    I have had success with using the XML dataset and filtering based on user input (see javascript example below)
    <script type="text/javascript">     
    var ds2 = new Spry.Data.XMLDataSet("disciplinary_actions3.xml", "doh/disciplinary_actions2[type='<? echo($type) ?>'][name>='<? echo($name) ?>']");
    ds2.setColumnType("date-of-sanction", "date");
    </script>
    The XML dataset filters the results based on the type and name values within the XML dataset columns.
    I need to accomplish this type of filtering with an HTML table.  All that I have  been able to accomplish with the use of the in the rowselector (see example below)
    <script type="text/javascript">
    <!--  the setRowSelector filters by the class attribute on the row in the html table
    var ds4 = new Spry.Data.HTMLDataSet("disciplinary_physicians_htmldataset.php", "physician-list");
    ds4.setRowSelector("tr.<? echo($type) ?>");
    ds4.loadData();
    //-->
    </script>
    How can I filter the HTML dataset based on the data VALUES within the table columns and NOT the class or id or span or div,,,etc?
    Although my advanced dataselector within Dreamweaver CS4 has a column selector... I can't under or get it to work.
    Any assistance or direction is greatly appreciated.

    Hi Ron,
    According to your description, you want to pass the Terminal number that user logon to where clause without needing to create a userid table, right?
    As per my understanding, you need to add an additional table to store the user and corresponding terminal, so that you can filter the data to show the rows based on the user and corresponding terminal. Here are some blogs which describe dynamic security
    on tabular model, please see:
    http://blogs.msdn.com/b/himanshu1/archive/2013/03/02/implementing-dynamic-security-in-tabular-models.aspx
    http://www.bidn.com/blogs/ChrisSchmidt/ssas/4332/dynamic-security-in-tabular
    If this is not what you want, there is no other approach to pass the Terminal number that user logon to where clause without needing to create a userid table. Thank you for your understanding.
    Regards,
    Charlie Liao
    TechNet Community Support

  • How to filter Billing Document Date

    Hello SAP Consultant
    I'm using vbrk and vbrp to fetch the data according to selection screen. Also i'm using Billing Document no as vbrp-vbeln and Billing date vbrp-fkdate. But i'm not able to filter the data according to billing document date.
    I'm using condition on vbeln fields exits in both the table vbrk and vbrp.
    Plz help me <removed by moderator>.
    Lot of thanks in advance.
    Edited by: Thomas Zloch on Nov 27, 2010 2:21 PM - priority normalised

    Hi
    You need to filter the header (VBRK) only and then get item in according to header:
    SELECT * FROM VBRK
         WHERE VBELN IN S_VBELN
                AND FKDATE IN S_DATE.
            SELECT * FROM VBAP WHERE VBELN = VBRK-VBELN
    Max

  • How to filter the Dimension data automatically when data source is ESSBASE?

    Hi Experts,
    Since the datasource is ESSBASE,when I only drag the Dimension column for displaying, it will show any redundance value,and it will not be related with Fact Table.
    I try to edit the formual as below, it does not work.However, the datasource is relation DB, it will be OK. Why? Are there any missing steps?
    Whether it need the MDX , Thanks.
    Case when 1=0 then cast(Sales as char) else Year end
    OR
    Case when 1=0 then Country else Year end
    For example,
    Year
    1999
    2000
    2001
    2013
    2014
    2015
    ...

    Yes right,
    AFAIK there isn't a filter feature for Event Hub. The only way to have now is to put a specific property inside your EventData that consumer group can check to filter if it is interested in the data or not.
    Paolo.
    Paolo Patierno

  • How to Filter E4x Xml data in a tile list?

    Hello!
    I'm simply trying to use a search box for some xml data I have in a tile list. Can anyone point me in the right direction?
    Here's the tile list:
    <mx:HTTPService id="GetXmlService"
    resultFormat="e4x"         
    fault="getXMLFault(event);"
    result="getXMLResult(event);"
    showBusyCursor="true" /> 
    <mx:TileList id="tileList"
    dataProvider="{GetXmlService.lastResult.image}"
    itemRenderer="CustomItemRenderer"
    columnCount="4"
    columnWidth="125"
    rowCount="2"
    rowHeight="150"
    themeColor="haloSilver"
    verticalScrollPolicy="on"
    itemClick="tileList_itemClick(event);" backgroundAlpha="0" height="487" borderStyle="none" y="30" right="10" left="10"/>
    And here's the XML Data:
    <?xml version="1.0"?>
    <gallery>
    <image username="People1"  rating="5" insession="yes" />
    </gallery>

    hi,
    This may help you
    http://gumbo.flashhub.net/filtering/  source included....(ignore extra file in the source, i forgot to clean the project before I built it).
    basically all I have done is have a list with the xml dataprovider, you can do an incremental search on the list using the xmllistcollection filter function
    http://flashhub.net/filter/ source included.......
    this is using a filter to refine a tilelist by a category.
    David

  • Doubt  in  how to   calculate  net  due date

    Hi..
    Experts   i have   doubt  in my  salesmen  ageing  report  i have to  display
    netamout    day  wise  in the range of   0-30 days , 30-60  days and  > 60 days
    how to calculate  the date difference between  to  date  one is invoice creation  date  and another  one is  system date.
    Give  me  any   function  module  available  to count  the  date  difference
    and how  i filter  the  amount  date  wise.
    Thanks Regds
    Prabir Kumar Dandpat

    Hi,
    check fm;
    SD_DATETIME_DIFFERENCE
    regards,
    Navneeth K.
    Message was edited by:
            Navneeth Bothra

  • Getting Rolling Date for a request in scheduled request set

    Hi All,
    I have a request set and autoinvoice runs as a part of this request set , autoinvoice has parameter default Date and when I schedule this request set , I have to fill this parameter (eg:07/07/2006) as this is mandatory parameter. However when I schedule this request set , I find that now reques set runs autoinvoice everyday with default date parameter having same value ie 07/07/2006 even though I have setup request set correctly ie I have supplied current date as default value for this parameter in request set.
    Can anybody tell me how do I get rolling date for a Autoinvoice request which fires as a part of scheduled request set running everyday.

    Hi Robert,
    This is an AOL problem. Please post your query in the AOL forum to get better replies.
    Regards,
    Swapna.

  • R12: How to filter Open Item Revaluation Report based on GL Date

    Hi,
    Anybody know how to filter Open Item Revaluation Report based on GL Date from and GL Date to in R12?
    Since we just upgraded from 11.5.10 to 12.1.3 and found we cannot filter those report for specific date. It shown all data included the old data from 8 years ago also.
    We need to run the report only for specific date only. Please share with me if anyone know about this.
    Thanks.

    Pl do not post duplicates - R12: How to filter Open Item Revaluation Report based on GL Date

  • R12: How to filter AP and PO Accrual Reconciliation Report based on GL Date

    Hi,
    Anybody know how to filter AP and PO Accrual Reconciliation Report based on GL Date from and GL Date to in R12?
    Since we just upgraded from 11.5.10 to 12.1.3 and found we cannot filter those report for specific date. It shown all data included the old data from 8 years ago also.
    We need to run the report only for specific date only. Please share with me if anyone know about this.
    Thanks.

    In 12 you can rebuild and run the report for a particular period, but not a single day if that's what's required

  • How to filter the Rest Api data based on Taxanomy columns

    Hi Everyone,
    We are using SharePoint2010 Standard Edition.
    I wanted get the library details through REST Api. I am using as below:
    https://SiteUrl/_vti_bin/listdata.svc/Documents?$filter=Title eq 'SharePointDoc'
    Here I am able to get the info regarding "SharePointDoc". But when I am trying to get the details from Taxonomy filter, it didn't.
    Can anyone please tell me how can we filter based on Taxanomy fields.
    Thanks in Advance
    Krishnasandeep

    Hi,
    I understand that you wanted to filter the Rest Api data based on Taxanomy columns.
    Per my knowledge, in SharePoint 2010 , not all types of column are available via REST, most annoyingly managed metadata columns are amongst this group of unsupported column types.
    However, in SharePoint 2013, we can filter list items based on taxonomy (managed metadata) columns.
    Taxonomy fields can be now called via REST API using CAML query in REST calls.
    Here is a great blog for your reference:
    http://www.cleverworkarounds.com/2013/09/23/how-to-filter-on-a-managed-metadata-column-via-rest-in-sharepoint-2013/comment-page-1/
    You’d better to change the REST calls and the CAML query to check whether it works in SharePoint 2010.
    More information:
    http://platinumdogs.me/2013/03/14/sharepoint-adventures-with-the-rest-api-part-1/
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • How to filter the records in the process of loading data into ODS

    Hi All,
    I am doing some data extraction from R/3 system. But I need to ignore(don't need to load) the records with a date field (Purchase Order date) that is blank.
    So how can I filter out the records with the blank date field?
    Some one suggested me to write some select statement (looping the data packages) in the start routine but I am not that experianced with the ABAP routines. So can anyone provide some sample format of the routine or can you suggest me some other way to  filter out this data.

    Ram Kumar,
    I used this in the start routine but it gives me an error saying ...
    No component exists with the name "TRAN_STRUCTURE-BEDAT"
    <b>delete datapak where TRAN_STRUCTURE-BEDAT = '' OR
                         TRAN_STRUCTURE-BADAT = '' OR
                         TRAN_STRUCTURE-ERDAT = '' OR
                         TRAN_STRUCTURE-FRGDT = '' OR
                         TRAN_STRUCTURE-UDATE = ''.</b>
    I have taken out the TRAN_STRUCTURE part and just typed
    delete datapak where BEDAT = '' OR
                         BADAT = '' OR
                         ERDAT = '' OR
                         FRGDT = '' OR
                         UDATE = ''.
    This above statement has no syntax errors. but this statement doesn't filter out the records with a the date fields that are blank.
    Please help me out here.
    This is kind of urgent.
    Thanks,

  • 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 data

    Dear Friends
    How to filter data by entering data in the field then the data filtered according to the data that is enter the filed
    For example
    If I have a list of values in the field EMPNO , and If I enter ‘S’ at the field EMPNO before pressing F9
    it should display those employees only when I press F9 as the following :
    SMITH
    SCOTT
    And if enter ‘AL’ it should display those employees only when I press F9 as the following:
    ALLEN
    ALI
    But if don’t enter any value in EMPNO and press F9 Then It should display all the All the employee’s name as the following
    ENAME
    SMITH
    ALLEN
    WARD
    JONES
    MARTIN
    BLAKE
    CLARK
    SCOTT
    KING
    TURNER
    ADAMS
    JAMES
    FORD
    MILLER
    ALI
    ABDULLAH
    Waiting for your valuable answer .
    Best regards
    Jamil Alshaibani

    Dear Rosario
    I have SET THE ITEM PROPERTY VALIDATE FROM LIST TO YES
    Of the field EMPNO ON WHICH I HAVE ASSIGN THE LOVE.
    And also I have written the script as the following:
    SELECT ENAME,EMPNO FROM EMP
    WHERE EMP.ENAME LIKE :EMPNO||'%'
    Then I type ‘S’ in the field EMPNO and I press F9 it is not responding for displaying the list of values it is displayed this message in the status bar ‘FRM-40502: ORACLE ERROR :UNABLE TO READ LIST OF VALUES .
    Waiting for valuable answer in details.
    Best regards
    Jamil Alshaibani

  • How to filter the data in dropdown?

    Hello,
    How to filter the data
    I got all the project name in dropdown when you select the project name in other textbox the project id will come automatically.
    so I want to get only those project name that is assigned to that particular user.
    I have
    ProjectName(dropdown),
    ProjectId(Textbox),
    Employee code(Unique value),
    employee Id (Unique for particular employee means if User A works on 5 projects so for all 5 projects the employee Id will be same),
    Project Id( 5 projects 5 different id)
    I didnt get the exact formula or I have to use any javascript code.Any help...
    Thanks,

    If I am understanding correctly, you want to populate a drop down with values from a list.
    Using InfoPath:
    right click on the drop down to be populated, and choose drop down list box properties.
    add the list with the values as a data source.
    click the filter box next to entries.
    select the field you want from the other list.
    click filter data.
    set the filter (click AND if you need more lines).
    click OK on any dialogs you need to to get back to the editor.
    Test your form.

Maybe you are looking for

  • Issue during creation of Transfer Order

    I am trying to create a Transfer Order from a TR but I am getting the follwoin error. "No destination storage bin to be found in storage type XXX " I have assigned a storage type to a storage bin and the Putaway strategy exist in material master whic

  • How to set it up to use BI Publisher Report layout in APEX

    Hi all, I downloaded the xml file from APEX to create a BI Publisher report layout and uploaded it to APEX report layout in share component. When I click the test report button, nothing showed. Would you show me what else I need to do to make it work

  • Using network shared variables in two computers connected via a network switch

    let me start by saying im a rookie to the programming environment but i have used Labview a couple of times to understand the basics,  i have a computer and a laptop (both using vista), both of them with Labview Full development System (Student ed. w

  • Could not find the main class?

    I am getting a Could not find the main class. Program will exit! Error with 1.3, but its because there is a jar file missing from the class path. The main class is actually there. Took me 1/2 to figure that out. This must be an error in the java comm

  • Why can't I log in to YouTube when using Firefox?

    Information is stored on other websites just fine, and I have been able to log on to my YouTube account through Internet Explorer 8. However, when I click the 'Sign In' button on YouTube, I keep getting an error message that reads, "The page isn't re