Hide one column when filter applied on dimension

My client has his weird requirement. She wants to hide one measure in pivot table when the filter is used for one dimension. Is there any way this can be achieved by MDX?
 

Hi,  Aleksandr,
Sorry for the misleading. 
However, what they want is not hide the unit level for the measure.  They wanted the entire [Measures].[YourMeasureName] to be null or blank when only some units of the unit level are select.
Foe example, when I use filter in my pivot table to select only campus X, dept Y, branch Z, and Unit U1 (there are U1, U2, U3 in branch Z), the entire column [Measures].[YourMeasureName] disappear or null.
I know it sounds crazy and confusing. But that's what they want.
Any suggestion?
Thank you!

Similar Messages

  • How to hide one column in PIVOT(in Union )

    Hi experts
    I have one problem regarding my Pivot report.
    I have to calculate MTD an YTD in my single report so i have calculated MTD in one criteria (UNION) YTD in second criteria.
    In my MTD i have to show 4 column: A B C D
    and in YTD I have to show only 3 column : A B C
    So how to hide column D in YTD.
    Thanks in advance
    Regards
    Frnds

    Hi John
    I have done :
    1. when i do cast as null to my D column in second report. I am getting error
    (Union for non compatible)
    2. so i done the cast in first report also..
    3. Done the union all
    4.and done the HIDE for column D in Result Column..
    But still i am seeing it in my report in YTD...
    So please help me its very urgent for me..

  • Not to hide the report when after applying in the filter

    Hi Experts,
    I have created the two reports in one tab one is present year report and another one is previous year report,In this the present year is should Get view and previous year report used by collapsible (+) in css style i have given as display:none It is fine ..
    But I need that If we select any filter in the Previous year report and giving Apply it should not get minimize.
    Please give me a good solution for this task...
    Thanks,
    Raju

    Aravind,
    I agree with your answer,This will possible only when we have same table for the same section,but i am using two different table and two different sections.
    For eg:If we change in the first filter it will get affect in the second filter.so only i used two different tables to get present year and previous year result in single tab.
    Thanks,
    Raju

  • How to hide one column in Alv if it doesnt contain any value

    Hi,
      In alv Grid if one coulmn doesnt conatin any value.I doesnt want to display in ALV grid.Is dat possible. Plz help.

    Hello Anu
    When you prepare your fieldcatalog check the column of the output itab for its contents, e.g.:
    " Itab GT_FCAT contains fieldcatalog.
    " Itab GT_OUTTAB contains ALV list data.
    " Condition: column "MY_COLUMN" should contain at least single value > 0
      LOOP AT gt_outtab TRANSPORTING NO FIELDS
                     WHERE ( my_column > 0 ).
        EXIT.
      ENDLOOP.
      IF ( syst-subrc NE 0 ).  " Column "MY_COLUMN" contains no value > 0, then hide column
        READ TABLE gt_fcat INTO ls_fcat
                  WITH KEY fieldname = 'MY_COLUMN'.
        IF ( syst-subrc = 0 ).
          ls_fcat-no_out = 'X'.  " not displayed, but visible in layout
          ls_fcat-tech = 'X'.     " not displayed, not available in layout
          MODIFY GT_FCAT FROM ls_fcat INDEX syst-tabix.
        ENDIF.
      ENDIF.
    Regards
      Uwe

  • How to hide perticular column when we repeat column ?

    Hi members,
    i have one problem.
    i have years in my elements.
    i am displaying this each distinct year as a column in template.
    for that i write this sysntax .
    <?for-each-group@column:ROW;./FISCAL_YEAR?>
    but when fiscal_year = 2000 then i need to hide this year 2000 column.
    i need to put this condition.
    so how can i implement this ?
    any help is greatly appreciated.
    thanks/

    Do this :)
    <?for-each-group@column:ROW[./FISCAL_YEAR !='2000'];./FISCAL_YEAR?>

  • Assign value to one column when etl process is run

    hi,
    i have a table with column etl_id. my requirement is when i ran one etl process this column is updated by 1. when i run etl process second time the value is 2. if i run n times its value should be n.
    How do i implement this logic?
    please find my table.
    table name is WHOUSE_DS
    CREATE TABLE OLAPS.WHOUSE_DS
    (     ROW_WID NUMBER(10,0),
         INTEGRATION_ID NUMBER(10,0),
         DATASOURCE_NUM_ID NUMBER(10,0),
         ETL_ID NUMBER(10,0),
         WAREHOUSE_CODE VARCHAR2(30),
         WAREHOUSE_LOC_NAME VARCHAR2(30),
         WAREHOUSE_LOC_ADDRESS VARCHAR2(30),
         WAREHOUSE_LOC_CITY VARCHAR2(30),
         WAREHOUSE_LOC_COUNTY VARCHAR2(30),
         WAREHOUSE_LOC_STATE VARCHAR2(30),
         WAREHOUSE_LOC_COUNTRY VARCHAR2(30),
         ZIP_POSTAL VARCHAR2(30)
    The bold column should be updated by 1 each time when i run the etl process.
    Regards,
    Jyothy

    Hi Jyothy,
    1.Define a Sequence Generator
    2. Define a fuction ETL_ID_FN.
    The function definition should be as follows.
    Get the "Next Val" of Sequence generator and pass that value as a return value.
    3. Import the funciton into OWB.
    4. Open your mapping.
    5. Use Constant Operator
    6. Define a variable
    7. In the defintion of varaible, call the imported function.
    8. Validate it.
    9. Assign it to the field whichever you want to.
    Regards,
    Gowtham Sen.

  • Reorder or hide columns when exporting

    Hello,
    When woking with Reports and previewing it before sent to the client, may appear the desire to change the report before sanding.
    by ex, one of our customers says: "This would be a nice extension of the column hiding & reordering capability, and would help with customers' requests that their reports come with certain data "eliminated."
    I work mainly with the CrstalReports "ReportClass:ReportDocument" class.
    Well, is there a possibility to hide some columns (when exporting)? To reorder them?
    thanks.

    Hello,
    you could delete report fields and runtime without saving the report.
    I attach code below for CS in VS2005:
    //File Name:          CS__Delete_Field_inproc.sln
    //Created:            April 4, 2008
    //Author ID:          FLI
    //Purpose:            This C# .NET sample Windows application demonstrates
    //                              how to delete a dbfield from a report
    //                              using unmanaged RAS.
    // Note this is available without a dedicated RAS with SP2 for XI R2
    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Data;
    using System.Drawing;
    using System.Text;
    using System.Windows.Forms;
    using CrystalDecisions.CrystalReports.Engine;
    using CrystalDecisions.ReportAppServer.ClientDoc;
    namespace CS_Delete_Field_inproc
        public partial class Form1 : Form
            // CR Declarations
            ReportDocument boReportDocument;
            ISCDReportClientDocument boReportClientDocument;
            CrystalDecisions.ReportAppServer.ReportDefModel.ReportObject boReportObject;
            public Form1()
                InitializeComponent();
                //Create a new ReportDocument
                boReportDocument = new ReportDocument();
                // load the RPT file
                boReportDocument.Load("..
    DeleteField.rpt");
                //Access the ReportClientDocument in the ReportDocument (EROM bridge)
                boReportClientDocument = boReportDocument.ReportClientDocument;
                // show in reportviewer
                crystalReportViewer1.ReportSource = boReportDocument;
            private void button1_Click(object sender, EventArgs e)
                //find the object in the report
                boReportObject = (CrystalDecisions.ReportAppServer.ReportDefModel.ReportObject) boReportClientDocument.ReportDefController.ReportDefinition.FindObjectByName("City1");;
                //Delete the object from the report
                boReportClientDocument.ReportDefController.ReportObjectController.Remove(boReportObject);
                //show in reportviewer
                crystalReportViewer1.ReportSource = boReportDocument;
            private void button2_Click(object sender, EventArgs e)
                //save report with new title
                boReportDocument.SaveAs("Test.rpt");

  • How to hide ALV column in webdynpro

    Hi frnds,
                   I want to hide one columns in ALV output on webdynpro , give the procedure ...
    Thanks & Regards,
    Rajesh.j

    Procedure is :
    a) Get ALV Model reference
    b) Get list of ALV Columns
    c) Loop at each column and set visibility
    Code would be something like this
    I'm storing ALV model reference in view attributes wd_this->alv_config_table of type ref to CL_SALV_WD_CONFIG_TABLE.
    Data: lo_cmp_usage type ref to if_wd_component_usage.
      DATA: lr_salv_wd_table TYPE REF TO iwci_salv_wd_table.
      DATA: lr_column_settings TYPE REF TO if_salv_wd_column_settings,
            lr_column          TYPE REF TO cl_salv_wd_column,
            lt_column type salv_wd_t_column_ref,
            ls_column type salv_wd_s_column_ref.
    *create an instance of ALV component
      lo_cmp_usage =   wd_this->wd_cpuse_OVERVIEW_EARNED_ALV( ).
    * if not initialized, then initialize
      if lo_cmp_usage->has_active_component( ) is initial.
        lo_cmp_usage->create_component( ).
      endif.
    * get ALV component
      lr_salv_wd_table = wd_this->wd_cpifc_OVERVIEW_EARNED_ALV( ).
       wd_this->alv_config_table = lr_salv_wd_table->get_model( ).
      lr_column_settings ?= wd_this->alv_config_table.
      lt_column = lr_column_settings->get_columns( ).
      loop at lt_column into ls_column.
        CASE ls_column-id.
          when 'POST_YEAR'.
            ls_column-r_column->set_visible( if_wdl_core=>visibility_none ).
       ENDCASE.
    endloop.

  • How to hide multiple columns in multicolumn listbox like as an excel sheet?

    Hello All,
    I have large amount of data that is to be displayed on multicolumn listbox. After displaying that, I want to hide or delete some columns from listbox in runtime.
    I know how to hide one column using active cell property node. But I want to hide multiple columns. I am using LabVIEW 2011. 
    Thanks in advance.
    Thanks & Regards,
    Manisha

    Thank you so much. 
    But I have total 12 columns and I don't want to delete columns serially. I want to delete inbetween columns, like in attached VI I want to delete column A & D only. 
    And in this user have to select it from frontpanel. I want this is to be done as in excel, like we select the entire column and either we hide it or delete it. One more thing I want to clear the data in multicolumn when I next time open my VI. How to do that?
    I hope am clear in explaining my problem.
    Thanks & Regards,
    Manisha
    Attachments:
    Delete Column.vi ‏10 KB

  • HOw to I get thumbnails to show in more than one column in Finder?

    When viewing images in Finder - they only show up in one column when I am in the thumnail view - how can I get them to show in multiple columns?
    Thanks

    This is Column view. When you select any item in any column, another column comes up on the right until an icon - with no content - is displayed in the far right column.

  • Simulating one column using two columns in a JTable

    What I need to do is "join" the two first columns of a JTable...
    What do I mean by saying "join" ?
    I want to make dissapear the right border of the first column, and the same thing for the left border of the second column, also do both things for the column headers of that two columns.
    All that to simulate having one column when there's actually two differents columns.
    How can i do that ? Thanks !

    Make a TableModel that filters your original table model.
    See JTable.setModel.
    public class MergedColumnsTableModel extends javax.swing.table.AbstractTableModel
         javax.swing.TableModel model;
         int[] columnSpans;
          * Assume for simplicity that model does not change (no columns inserted/deleted).
         public MergedColumnsTableModel(javax.swing.TableModel model) {
              this.model = model;
              columnSpans = new int[model.getColumnCount()];
              for (int columnIndex = 0; columnIndex < columnSpans.length; ++columnIndex) {
                   columnSpans[columnIndex] = 1;
         public void merge2(int columnIndex) {
              int leftSpan = columnSpans[columnIndex];
              int rightSpan = columnSpans[columnIndex + leftSpan];
              columnSpans[columnIndex + leftSpan] = 0;
              columnSpans[columnIndex] += rightSpan;
         public int getRowCount() {
              return model.getRowCount();
         public int getColumnCount() {
              int n = 0;
              for (int i = 0; i < columnSpans.length; ++i) {
                   if (columnSpans[i] != 0) {
                        ++n;
              return n;
         public Object getValueAt(int row, int column) {
              int n = 0;
              for (int i = 0; i < columnSpans.length; ++i) {
                   if (columnSpans[i] != 0) {
                        if (n == column) { // We are at the column
                             return model.getValueAt(row, i);
                        ++n;
    }

  • In the app "Numbers" I want to paste in many rows in to columns. And each row separated. Now it's getting all in one column

    In the app "Numbers" I want to paste in many rows in to columns. And each row separated. Now it's getting all in one column when I try to paste.
    Fact is that I have a 4 pages list with about 50 rows of single words and I want all that in columns

    Hey joshuafromisr,
    If you resintall iTunes, it should fix the issue. The following document will go over how to remove iTunes fully and then reinstall. Depending on what version of Windows you're running you'll either follow the directions here:
    Removing and Reinstalling iTunes, QuickTime, and other software components for Windows XP
    http://support.apple.com/kb/HT1925
    or here:
    Removing and reinstalling iTunes, QuickTime, and other software components for Windows Vista or Windows 7
    http://support.apple.com/kb/HT1923
    Best,
    David

  • Formula to combine multiple fields on one column

    Hi All,
    How do you create a formula in the formula editor that allows you combine several fields onto one column. An example: if I wanted to combine a street address onto one column when it is several fields in the data base. I know I need to seriously work on my coding, because it probbably is not that difficult. I've tried slect statementw with Case True and different If then else statements, but I am not getting all of value to return.
    Regards-

    Hi Kyle,
    To avoid null values you need to convert "Default values for nulls" in the formula editor.
    Edit your formula
    {database.field1} + " " + {database.field2} + " " + {database.field3}
    and in formula editor at the top you can see a dropdown list with "Exception for nulls" change this and select "Default values for nulls"
    Now you can avoid the nulss in output
    Regards,
    Raghavendra

  • Select distinct('more than one column') from ....

    Why does this sql statement not work:
    select distinct(column_a, column_b, column_c), empno
    from emp;
    How can I 'select distinct' using more than one column.

    Actually, DISTINCT applies to all columns in the result.
    Distinct is not a function, you cannot do distinct(column1, column2, ...).
    As a matter of fact it doesn't make sense to expect distinct applies to only one column, because you do not specify any criteria on how to select the values for the second column.
    A final note: you can do distinct(column1), column2, but this will still apply to both columns!
    Here're some examples that will all return both rows from the set, where set is: (1,1), (1,2):
    select distinct val1, val2
    from
    select 1 as val1, 1 as val2 from dual
    union all
    select 1 as val1, 2 as val2 from dual
    select distinct val1||'-'||val2
    from
    select 1 as val1, 1 as val2 from dual
    union all
    select 1 as val1, 2 as val2 from dual
    select distinct(val1), val2 -- this is very misleading. distinct still applies to both columns
    from
    select 1 as val1, 1 as val2 from dual
    union all
    select 1 as val1, 2 as val2 from dual
    Edited by: user4010726 on Dec 1, 2009 11:06 AM
    Edited by: user4010726 on Dec 1, 2009 11:07 AM

  • How to hide a column in report when it has all zeros.

    Hi Experts.,
    Is there any possibility to hide a column in report when it has all zeros.
    Thanks in Advance
    Venkat

    Venkat Krishna wrote:
    Hi Experts.,
    Is there any possibility to hide a column in report when it has all zeros.
    Thanks in Advance
    VenkatNot out-of-the-box, but there are several workarounds if you wish to pursue any of them:
    1) Use a View Selector. One report will have a pivot table with the column, the other will have the same report minus the column. Users can switch reports.
    2) Use a Column Selector. The two choices would be that column or a blank. If the blank is chosen (because the user sees there are no values), the column will "disappear" from the report.
    3) Use Guided Nav. This method doesn't involve user intervention. Build a small report using the one column and put a filter on it "is not equal to" 0. Because there is only one column, if all the rows are 0, the report will not return rows.
    Use this report in the guided navigation properties of a section of the dashboard. Set this to "if the report returns rows" and put the report that has the column in this section. Now add another section to your dashboard and in the guided navigation properties of this section, set it to "if the report returns no rows" and point it to the small report as well. In this section put a second version of your report without the column in it.
    When the column contains all zeroes, the second section will display with the column not in it; the first section will not display. When at least one row contains a non-zero value, the first section will appear with the column, and the second section will not.

Maybe you are looking for

  • Spacing between portlets

    Hi, I am new to portal and sorry if this is a silly question. How can I remove the spacing between the portlets? In fact, whenI design my pages, should I insert the page elements as JSP/HTML portlets, if so, I need to remove the spacing between them.

  • Disallow changes in Sales Order through T-Code VA02

    Dear Gurus, We create the Sales Order and with reference to that the User wants to change few fields (Account Assignment Group, Pricing Date, Invoice Date, INCO terms, Payment Terms etc.) which are not supposed to be edited by him through T-Code VA02

  • Export and burn - Final Cut Studio to DVD Studio Pro

    I think I am doing all the right settings when I try and convert material that was filmed with an HDV camera into a suitable format for burning and playing on a traditional SD DVD recorder. But even with encodings of 720 x 576i PAL, the disc once bur

  • Dynamic content

    Hi everyone. I have been using google and this site to try and figure out what I need to do to controll what images that get shown in my portfolio by klicking "tags" I found a good wordpress document that shows it vrey well what I want to do. http://

  • Any fixes to frequent Safari crashes?

    Ever since I upgraded to iOS 6.1.3, my Safari crashes several times per day, clearing out all active web pages and links.  Is there a way to 'config' your way out of this bug?