Dynamically selecting values for filter in power pivot

Hi,
I am creating a power pivot report. I want the values of its filters to be set dynamically based on certain critreria. For Example, if some one changes the Iteration Path then the range of dates should change automatically to Iteration start date -
Itearation End Date.
Is there any way to set filter values based on some calculation.
Any help in this regard will be highly appreciated.
Thanks,
Bhawna.
Bhawna Aggarwal

Check out the Event-In-Progress pattern as described here:
http://cwebbbi.wordpress.com/2013/06/13/a-new-events-in-progress-dax-pattern/
basically you need to create a separate measure which to do the specific filtering for you
hth,
gerhard
Gerhard Brueckl
blogging @ http://blog.gbrueckl.at
working @ http://www.pmOne.com

Similar Messages

  • Copy 'Favorites' in 'Select Values for Variables' screen

    I need to copy a list that I created as a 'Favorite' in the 'Select Values for Variables' screen for Customer to all the other userids so that everyone is using the same list of customers.  Can someone tell me the table(s) where these values are stored?  Is there a function module or program available that copies 'Favorites'. 
    It would be nice if you could select if the 'Favorites' you create can be 'Global'.
    Thanks.

    the variant values are stored in RSRPARAMETRIZA. the field content stores in XML format. you can write an ABAP program to read and update it.
    Edited by: Ananda Theerthan on May 26, 2010 8:56 PM

  • How to make a report to display next 18 months of data with when user select a particular month from the filter in power pivot tabular model.

    Hi,
    i have a  dimension table  with month_key having values (201201,201202,201203.......202011,202012) and month name ( Jan 12, feb 12,......NOV 20, Dec 20)  and a fact  table with columns (month_key ,measure_types, Amount)
    My requirement is to create a power pivot report  in which when a user select a month from the filter, the report should display the (selected month+18 ) month's data against each type . when JAN 12 is selected ,the jan 2012 +18 = june 2013
    , month name should be populated with months till june 2013 only .
    i tried creating calculated column"END DATE " in the fact table with  dax expression to calculate the 18th monh from the current month  as below 
    month_key END DATE
    201201       201306    
    201202       201307      
    and thought of filtering the table with month key <= ENDDATE but it is not working as expected. could you please guide me on this ? Is there any time intelligence function that serve the purpose . Iam using  excel 2010
    ..hence could not do any calculation on the report side also. please suggest .
    Thanks in advance                                                                                                                                               

    Do you need to show the measure calculated for those 18 months as a total on 1 row, or do you need to select a single month and then display on row filters 18 distinct rows?
    The first is trivial as driezl has suggested.
    The second will require a second calendar table.
    I created this example workbook for a coworker who had a similar problem. You will have to use the disconnected table as your filter and pull your related table onto the rows.
    Finally, the easiest way to deal with the sort of date arithmetic you need to do is to restructure your date table to have a series of "Sequential" fields. These fields should be the number of units of time since the beginning of your calendar.
    For example, consider a calendar starting on January 1, 2010. For January - December 2010, [MonthSequential] = 1, 2, ..., 12. For January - December 2011, [MonthSequential] = 13, 14, ..., 24, and so on, incrementing by 1 for each sequential month in time.
    Assuming you have this set up in your date tables (one related to your model - DimDate - and one disconnected - DisconDimDate) your measure would look like this:
    18 Month Measure:=
    CALCULATE( [Measure]
    , FILTER( DimDate
    , DimDate[MonthSequential] >= MAX( DisconDimDate[MonthSequential] )
    && DimDate[MonthSequential] <= MAX( DisconDimDate[MonthSequential] ) + 18
    Please review this example along with the workbook I have linked above.

  • Dvt:pivotFilterBar - how to get selected values from filter

    Hi all,
    I have a question: how to programmatically get selected values from pivot table's filter bar?
    I have tried to use
    pivotTable.getDataModel().getDataAccess().getValueQDR(startRow, startCol, DataAccess.QDR_WITH_PAGE);but for page edge dimensions it returns BAD DATA, it seems that it returns some cached values.
    Environment: JDev 11.1.1.3.0 without any patches.
    thanks,
    Miroslaw

    Hi,
    You can retrieve the selected value in the PivotFilterBar through the model of PivotFilterBar, instead of dataaccess:
    // get the model from the pivot filter bar instance
    QueryDescriptior queryDescriptor = (QueryDescriptor)pivotFilterBar.getValue();
    // retrieve a list of criterion, each one is used to populate each lov within the pivot filter bar
    ConjunctionCriterion conjunctionCriterion = queryDescriptor.getConjunctionCriterion();
    List<Criterion> criterionList = conjunctionCriterion.getCriterionList();
    for (int i=0; i<_criterionList.size(); i++) {
    AttributeCriterion criterion = (AttributeCriterion)criterionList.get(i);
    // _selected is the currently selected value
    Object selected = criterion.getValues().get(0);
    System.out.println(_selected);
    Hope that helps,
    Chadwick

  • Passing dynamic selection parameters for fagll03 transaction

    hi experts,
    im trying to call  a transaction ( fagll03) in my report with the input parameters via selection screen (using SUBMIT ) , but iwant to pass the profit center  values to the transaction fagll03 , but the profit center is in dynamic selection , i just tried with some code , but it is not working, can any one just tell me briefly how to pass the profit center variable to the dynamic selection screen in fagll03. if u have any code please update me , it will be more useful.
    Regards,
    Venkat.

    Look at FM FREE_SELECTIONS_RANGE_2_EX which will build the correct parameter to use in the WITH FREE SELECTION option.
    First read Abap documentation at SAP online help [WITH FREE SELECTIONS texpr |http://help.sap.com/abapdocu/en/ABAPSUBMIT_SELSCREEN_PARAMETERS.htm#!ABAP_ADDITION_5@5@] in [SUBMIT - selscreen_parameters|http://help.sap.com/abapdocu/en/ABAPSUBMIT_SELSCREEN_PARAMETERS.htm] of [SUBMIT|http://help.sap.com/abapdocu/en/ABAPSUBMIT.htm] (or press F1 on SUBMIT)
    Also look if those notes are relevant for your system
    - [Note 965988 - FAGLL03: 'Dynamic selections' are ignored|https://service.sap.com/sap/support/notes/965988]
    - [Note 1105201 - FAGLL03: 'Custom selections' are ignored|https://service.sap.com/sap/support/notes/1105201]
    Regards,
    Raymond

  • Dynamic Selection Variable for CO report

    Dear Expert,
    I have created cost center report using report painter. I wanted to setup dynamic selection variant with values Current Fiscal Year and period as current -1. With this variant I wanted to generate background job, but noticed that the report which I created does not provide me option "D"  but only provide me option variable "T"
    I am looking option either I get option "D" or If "D" is not possible then how can I achieve above using variable type "T"?
    Looking for your assistance. Thanks in advance!
    B/R
    Prashant Rane

    Hi,
    'D' type of variable can be assigned only to a field of 'date' format. 'Period' is not that kind of field, its format is numeric of 2 digits.
    Regards,
    Eli

  • Unable to set the selected value for a ADF LOV

    Hi,
    I am developing an application using jdeveloper 10.1.3 and Struts.
    I have created a ADF LOV on my JSP Page as given below:
    <html:select property="lob" onchange="javascript:selectLOB(this.form)">
    <html:optionsCollection label="prompt" value="index" property="lob.displayData"/>
    </html:select>
    When i submit the form, i am able to get the value of the selected Value in the List.
    JUCtrlListBinding listBinding = (JUCtrlListBinding) formBean.get("Lob");
    Row r = (Row) listBinding.getSelectedValue();
    String SoLob = (String) r.getAttribute("LobLob");
    But i am unable to set the selected value back in the list when i return to the form again.
    I tried the following:
    int x = listBinding.getSelectedIndex();
    listBinding.setSelectedIndex(x);
    It would be really helpful if some one could let me know what needs to be done.
    Thanks,
    Subashini

    Gyan,
    I tried with the code you suggest , its trying to set the value of a field, but my requirement is to change the property for
    "Rendered" on the field so that based on search parameters we can hide result table column.
    After searching online, I modified the controller code as follows
    1.Created a new transient attribute (Testrender) with type "Boolean" and always updateable.
    2.changed the "Rendered" property value on the field I want to hide as ${oa.PoSearchVO1.Testrender}.
    3. Modified the controller code as follows :
            OAApplicationModule am = pageContext.getApplicationModule(webBean);
            OAViewObject testvo = (OAViewObject)am.findViewObject("PoSearchVO1");
            OADBTransaction txn = am.getOADBTransaction();
            if (testvo != null)
              OARow row = (OARow)testvo.first();
                if (a.equalsIgnoreCase("Approved"))
                     row.setAttribute("Testrender", Boolean.FALSE);
                else
                     row.setAttribute("Testrender", Boolean.TRUE);
            } But now when i run the page and populate the search field and click "Go" its hiding the field but throwing the following error and the search results are also bad.
    Its using only the value of one search parameter but not the second one .
    The search cannot be executed because the table has pending changes that would be lost. I think the vo is getting dirty when I update the transient attribute value. So I used txn.rollback ,then search is working fine but its not hiding the field.
    So can you please let me know how to proceed from here ?

  • Dynamic Select in FOR REC IN (SELECT

    Hello Guys,
    We are trying to use dynamic select statement in FOR REC IN based on certain parameter. But does not compile with following error message.
    209/10 PLS-00103: Encountered the symbol "END" when expecting one of the following:
    loop
    Could some one let us know how this can be achieved, may be with an example. Thankis in advance. Here is the sample code:
    IF pPROCESS_BY = 'ALL' THEN
    FOR REC IN (SELECT LSP.HAZMNP_SEQ_NO,
    LSP.LSP_START_DATE,
    LSP.LSP_END_DATE,
    LSP.LSP_OST,
    LSP.LSP_DBI,
    LSP.LSP_DBI_FREQUENCY_PERIIOD,
    LSP.LSP_DBI_RETENTION_PERIOD,
    LSP.LSP_DBI_RETENTION_FREQUENCY,
    LSP.LSP_ENDURANCE_LEVEL,
    LSP.LSP_RDE_PERIOD1,
    LSP.LSP_RDE_PERIOD2,
    LSP.LSP_RDE_PERIOD3,
    LSP.LSP_RDE_PERIOD4,
    LSP.LSP_EXCLUDED_ACTIVITIES,
    LSP.LSP_SEQ_NO
    FROM LEVEL_SET_PARAM LSP
    WHERE LSP.LSP_PROCESS_ALL_NIINS = 'Y'
    AND LSP.LSP_IS_ALL_NIINS_PROCESSED = 'N'
    AND LSP.HAZMNP_SEQ_NO = pHAZMINSEQNO
    AND ROWNUM = 1
    ORDER BY LSP_SEQ_NO DESC)
    END IF;
    IF pPROCESS_BY = 'SPN' THEN
    FOR REC IN (SELECT LSP.HAZMNP_SEQ_NO,
    LSP.LSP_START_DATE,
    LSP.LSP_END_DATE,
    LSP.LSP_OST,
    LSP.LSP_DBI,
    LSP.LSP_DBI_FREQUENCY_PERIIOD,
    LSP.LSP_DBI_RETENTION_PERIOD,
    LSP.LSP_DBI_RETENTION_FREQUENCY,
    LSP.LSP_ENDURANCE_LEVEL,
    LSP.LSP_RDE_PERIOD1,
    LSP.LSP_RDE_PERIOD2,
    LSP.LSP_RDE_PERIOD3,
    LSP.LSP_RDE_PERIOD4,
    LSP.LSP_EXCLUDED_ACTIVITIES,
    LSP.LSP_SEQ_NO
    FROM LEVEL_SET_PARAM LSP
    WHERE LSP.HAZMNP_SEQ_NO = pHAZMINSEQNO
    AND LSP.LSP_SPECIFIC_NIIN = pSPECIFIC_NIIN
    AND ROWNUM = 1
    ORDER BY LSP_SEQ_NO DESC)
    END IF;
    LOOP

    You need to use cursor variables if you want to process result sets based on different query statements.
    For more information and a sample see
    http://download-west.oracle.com/docs/cd/B10501_01/appdev.920/a96624/06_ora.htm#1510

  • Variable Entry - Select Values for plant

    Hi All,
    I am using a variable(OPLANT) in a report and in select screen I just need Key and Text.But Now I see more details. Ex:key,text,country key,business partners and so on. How do I get this to display just key and text from the select values screen.
    I tried Business explorer tab settings and set it to key and text but still no luck.
    Any Help please ?
    Regards
    SR

    Hi,
    There is a third check you can do apart from the two checks mentioned by Kiran above.
    There is column called 'Order for F4 help' in the 'Attribute' tab of an infoobject.
    Here the value against each of the attribute being displayed as of now should be made'00'.
    When we make custom infoobjects, it is generally kept as '00' by default.
    But since this is a standard SAP infoobject, this might have values greater than 0.
    This indicates that these values will appear along with the infoobject during the value
    help (in the order of the number mentioned).
    It might not be possible for you to change this number. In that case you might have to
    create an infoobject (copy of this object but without values against 'order for F4 help') and
    use in the flow and query.
    - Shruti

  • Query to select value for max date from a varchar field containing year and month

    I'm having trouble selecting a value from a table that contain a varchar column in YYYY-MM format. 
    ex.
    Emp_id Date Cost
    10264 2013-01 5.00
    33644 2013-12 84.00
    10264 2013-02 12.00
    33644 2012-01 680.0
    59842 2014-05 57.00
    In the sample data above, I would like to be able to select the for each Emp_id by the max date. Ex. For Emp_id 10264, the cost should be 12.00.

    create table test (Emp_id int, Date varchar(10), Cost decimal (6,2))
    insert into test values(
    10264, '2013-01', 5.00 ),
    (33644, '2013-12', 84.00 ),
    (10264, '2013-02', 12.00 ),
    (33644, '2012-01', 680.0 ),
    (59842, '2014-05', 57.00 )
    Select Emp_id,[Date],Cost FROM (
    select *,row_number() Over(Partition by Emp_id Order by Cast([Date]+'-1' as Datetime) Desc) rn
    from test)
    t
    WHERE rn=1
    drop table test

  • Query - select values for variables form list / Bex 7

    Hello together,
    when I open a query in the 'Business Explorer Analyzer 7' and I want to select the values for my variables from list, BW shows always the values from history. 
    Is it possible to change this? I want to see always the single values.
    Thanks and best regards.
    Jörg

    Hello Jörg
    The variable values in history are shown in drill down button of variable input box, whereas a button beside it will show a list of values when clicked. These are F4 value help selections.
    How is variable created? Please create variable with basic settings as
    'single value'.
    Regards,
    Asit Ramteke

  • Dynamic selection screen for FDK43

    HI All,
    I need to add a field (accounting clerk - BUSAB)in the dynamic selection-screen  of transaction FDK43.
    I used se36 to view the current selection-screen view and it does show me the field accouting clerk under functional group  - 04  (Company Code) .The field is ticked for preselect.
    However I am not able to see this field (BUSAB) in the dynamic selection when I run transaction FDK43.
    Any idea on how to make the function group 04 available for selection  ? or maybe even the field in it available for selection ?
    Regards,
    Shital

    hi
    use this link
    Dynamic selection screen
    Cheers
    Snehi

  • Additional Dynamic Selection criteria for Vendor-Search Tearm 2

    Hi All,
    I need to incorporate additional dynamic selection criteria which references 'Vendor-Search Term 2' in new Z Transaction which is a copy of Transaction S_ALR_87012086.
    help me out how to proceed.
    Full reword points will be given.

    Hello Chetan,
    have you checked note 79166 "MM-SRV Hint: Vendor evaluation for service"?
    Define an evaluation criterion for services in Customizing of the vendor evaluation to be able to use the vendor evaluation also for the services management.The main criterion must contain the determination methods 'C' (determination from the quality valuation of the service) and 'D' (determination from the timeliness rating of the service) in the sub-criteria.
    Kind Regards
    TomT

  • Dynamic select views for MM01 Transaction

    Hii  Friends,
    I have an issue like i need to dynamically select the views in MM01 transaction from the BDC program
    without selecting that views manually.
    Using SHDB recording i can select the views before recording  and then call those views again
    If i want to select the views from the program how do i do it..
    If there is any way to do this in call transaction let me know plz
    Thanks in advance
    kishore

    BDC is not good for MM01 , go for bapi
    other wise go for  LSMW bapi method...
    Business Object      BUS1001006   Standard material
    Method               SAVEDATA                    Create and change materia
    Message Type         MATMAS_BAPI                 Create and change materia
    Basic Type           MATMAS_BAPI02               Create and Change Materia

  • Query in selected value for radiogroup

    Is it possible to have a query in the p_selected_value of an htmldb_item.radiogroup ?
    If yes, how ?
    If not, is it possible to always set the first radio button as the selected value ?
    thx,
    Patrick

    Hi Enric,
    After the execution of a query using Query designer, after the selection of the variable values, you will get navigation block and the data beside that in Data Analysis tab. In this navigation block, you will find only the restricted values after the variable selection. You will not find the values selected displayed over there. When you select a chracteristic and click on filter button, you will get the values which are restricted only within the data displayed beside that in the output.
    If you want to have a look at the variable selection parameter that you have selected in the popup, you should go to Information tab and you can check the same there.
    The Navigation Pane Web item shows the navigational state of a data provider. All the characteristics and structures of the data provider are listed. You can alter the navigation status by using drag and drop to drag characteristics or structures to an axis (rows or columns) of the table, or to remove them from the axis. Using drag and drop, you can swap the axes in the navigation area; the table changes accordingly. You can also drag characteristics to the filter pane using drag and drop.
    Hope this helps u...
    Regards,
    KK.

Maybe you are looking for

  • How can you create a swatch from a jpeg in Illustrator CS4?

    I am trying to create a jpeg image into a swatch in Illustrator CS4. In previous versions you could simply drag the image into the swatches toolbar and it would convert it automatically. Now when I do that nothing happens. When I click on new swatch

  • How can I add document signatures to a dynamic table?

    I have a table where I am adding rows dynamically by adding a + or - button to add or remove rows to add to the table. Right now I have a name field and an e-sign field. The problem I am having is that the document signature cannot be repeatable/ nee

  • Custom Vs. Complex Folder???

    Hi friends, I have a BusinessArea: BA_1 BA_1 has a database folder: DF_1 (based on Table TB_1) now i want to create some calculated items that are used frequently by the users. So i wanted to create those items in Admin so that they are available to

  • Error loading Inventory Service

    Just completed several installs of Zen for Desktops 6.5 SP2. No problems except for one server that will not load the Inventory service. Tried renaming the Zenworks folders and reinstalling, deleting the objects and reinstalling, etc... Found the fol

  • Installing elements 11

    tried to download elements 11 and it didn't complete the download stating that the shared products element didn't complete. How do I get around this?