Filter Dimension over DateRange

with member measures.[dummy current] as count(Nonempty(extract([Case Service].[Case Service ID].[Case Service ID].Members,{[Month ID].[Month ID].&[201401]: [Month ID].[Month ID].&[201404]})
,[Measures].[Outcomes Count]))
member measures.[dummy YTD] as count(Nonempty(extract([Case Service].[Case Service ID].[Case Service ID].Members,{[Month ID].[Month ID].&[201401]: [Month ID].[Month ID].&[201403]})
,[Measures].[Outcomes Count]))
SELECT NON EMPTY { measures.[dummy current], measures.[dummy YTD] } ON COLUMNS,
[Consultation Type].[Consultation Type Display Name].children on rows
FROM ( SELECT ( { [Account].[Account ID].&[12345] } ) ON COLUMNS
FROM [dsvDM])
hello,
I'm trying to do custom calculation for the measures above but no luck, does anyone know how to filter a dimension values from a date range?
The Main intention of the above query (in simple English) would
be
count(caseservice_id) when month_id between 201401 to 201403 as current
count(caseservice_id) when month_id between 201401 to 201404 as YTD
Where case service and month_id are dimensions.

Hi Naveej,
I used an approach similar to what Mosha describes in this blog post. http://sqlblog.com/blogs/mosha/archive/2007/11/22/optimizing-count-filter-expressions-in-mdx.aspx I've
tried to structure the MDX query below in the same order that I'd attack the problem. Reply back with questions if the approach is not clear and I'll try to answer them if I get a chance.
WITH MEMBER [Month ID].[Month Id].[All].[First Quarter] AS
Aggregate( { [Month ID].[Month ID].&[201401]: [Month ID].[Month ID].&[201403] } )
MEMBER [Month Id].[Month Id].[All].[Year to Date] AS
Aggregate( { [Month Id].[Month Id].&[201401] : [Month Id].[Month Id].&[201404] } )
MEMBER [Measures].[Has First Quarter Outcomes] AS
IIf(
( [Measures].[Outcomes Count], [Month Id].[Month Id].[First Quarter] ) = 0,
NULL,
1
MEMBER [Measures].[Has YTD Outcomes] AS
IIf(
( [Measures].[Outcomes Count], [Month Id].[Month Id].[Year to Date] ) = 0,
NULL,
1
MEMBER [Measures].[dummy current] AS
SUM(
{ [Case Service].[Case Service ID].[Case Service ID].Members }
, [Measures].[Has First Quarter Outcomes]
MEMBER [Measures].[dummy YTD] AS
SUM(
{ [Case Service].[Case Service ID].[Case Service ID].Members }
, [Measures].[Has YTD Outcomes]
SELECT {
[Measures].[dummy current],
[measures].[dummy YTD]
} ON COLUMNS,
NON EMPTY {
[Consultation Type].[Consultation Type Display Name].[All].Children
} ON ROWS
FROM [dsvDM]
WHERE (
[Account].[Account ID].&[12345]
Martin Mason Wordpress Blog

Similar Messages

  • Filter dimension elements

    Hi experts!
    I have some dimensions in my obiee administration but one of them I want to filter with a column because I don't want all members of that dimension.
    Example:
    ID-------Name----Flag
    01-------A-----------1
    02-------B-----------
    03-------C-----------1
    In this example I want to see members A and C in my presentation layer.
    How Can I do this??
    Thanks!!

    I get the solution using filter in physical layer....but I can't do it in logical layer.
    Really I'm interested in found solution in logical layer because my dimension is shared with another stars in my .rpd So I have to duplicate physical dimension table to filter with flag =1 when belongs to one star and filter with flag=2 when belongs to another...
    I have my flag field in logical table and I click on Source Tab (my_dimension) and I can see a popup windows called: Logical Table Source - My dimension. Then I can see all my columns of that dimension (I don't have all of columns because I don't need it). So I click on Flag column and go to F(x) button and I add in expression builder = 'Y'. I can see that this column is converted in boolean (originally is a VARCHAR (5))
    I save my .rpd without any error but don't works...
    Any help?
    Thanks!

  • How do I make a FFT filter fade over time?

    I am trying to apply a FFT filter (underwater shallow) to an audio track, but I want it to gradually fade until we here the original non-filtered audio at the end. I've created a multitrack session, but Show Envelopes does not unclude the FFT filter. Surely there is a way to accomplish this? Please help!

    If you add the FFT filter to the Effects Rack for your audio track you can then select Rack Mix in the Automation track and use it to fade between the "wet" treated version and the "dry" untreated version.

  • I wrote a filter driver over block device.

    HI,
    I wrote a virutal volume driver over block device , simlar with LVM,
    I call it "vraid" ,I can create PV,VG,LV,it's working well.
    However I cannot acess the sector over 2G , I can use the system
    command "newfs -s XXXX /dev/vlun/rdsk/vlun0" to create a 2G filesystem.
    If I use newfs /dev/vlun/rdsk/vlun0 to create the file system in the whole LV size,I found
    If LV>2G ,the sector beyond 2G will not be located correctly. output as below.
    seek\:XXXXXX Invalid argument.
    So I use the system c ommand "truss" to trace the command mkfs (newfs invoke mkfs finally) ,
    I found the llseek() is the matter,
    When llseek() is invoked, I trace d all system callings,I found if I use llseek() to
    locate some sectors, however there is no any callings ocurred in my drvier besides the
    calling open() and close()/
    I wonder to know why I always failed to acess the sector over 2G .
    thanks and happies.
    I'm sorry my poor English/
    I'm in China. and I'm a Chinese girl.
    Ms. Anda

    My makefile is the following.:
    # CC = /opt/SUNWspro/bin/cc
    CC = /usr/local/bin/gcc
    LD = /usr/ucb/bin/ld
    # 'uname -p' command
    INST = i386
    INCL = -I . -I $(TOPDIR)/include
    #gcc
    CFLAGS = -O $(INCL) -D_KERNEL -DOS_SOLARIS -Wall
    TOPDIR = ../..
    BUILD = vraid
    OBJS = _vraid.o        \
    raid0.o \
    raid1.o \
    multicopy.o \
    snapshot.o \
    queue.o \
    hash.o \
    rand.o
    $(BUILD) vraid_driver_setup.bin:$(OBJS)
    $(LD) -r -o $(BUILD) $(OBJS)
    sh -c ./generate_bin_install.sh
    hash.o:hash.c
    $(CC) $(CFLAGS) -o hash.o -c hash.c
    _vraid.o:vraid.c
    $(CC) $(CFLAGS) -o _vraid.o -c vraid.c
    raid0.o:raid0.c
    $(CC) $(CFLAGS) -o raid0.o -c raid0.c
    raid1.o:raid1.c
    multicopy.o:multicopy.c
    $(CC) $(CFLAGS) -o multicopy.o -c multicopy.c
    queue.o:queue.c
    $(CC) $(CFLAGS) -o queue.o -c queue.c
    snapshot.o:snapshot.c
    $(CC) $(CFLAGS) -o snapshot.o -c snapshot.c
    rand.o:rand.c
    $(CC) $(CFLAGS) -o rand.o -c rand.c
    clean:
    rm -rf $(OBJS) $(BUILD) vraid_driver_setup.bin

  • Image plays ok but has coloured filter appears over image

    After exporting a Quicktime Movie from FCP and gragging it into iDVD it plays ok but has a horrible red blue green speckled looking filter on it. The file plays perfectly in Quicktime player but looks crap it iDVD.

    Hi
    FCE/P to iDVD
    Several things
    • How to go from FCE/P to iDVD
    • Free space on Start-up hard disk
    • Encoding
    • Brand and type of DVDs used
    • Burn speed set
    • iDVD BUG
    • Chapters
    How to go from FCE/P to iDVD I do
    • Disable Screen and Energy saver
    • IMPORTANT --> FIRST in FinalCut - Mix Down Audio under Sequence Menu / Render Only / Mix-down
    • Export out as a QuickTime .mov file
    • Select with Mark - Chapter Mark
    • Not as Self-Contained (not important but saves time and space)
    • NO QUICKTIME CONVERSION (IMPORTANT)
    This QT.mov file I import into iDVD from within iDVD.
    Free space on Start-up hard disk
    I set a minimum of 25GB (for Mac OS and iDVDs temp files)
    Encoding
    • I use Pro Quality encoding
    Brand and type of DVDs used
    • I use Verbatim
    • I use DVD-R
    Burn speed set
    • I set down this to x4 (or x1)
    iDVD BUG
    • One can not go back to movie-project for any alterations and then go back to
    the iDVD project. It will notice and ask You to either Up-date or Cancel. Neither
    of them will work.
    Medicine - Start a brand new iDVD project.
    Use of Chapters
    • I only use a to z and 0 to 9 in naming them. NO other symbol/letter !
    • NO Chapter-mark at very beginning - iDVD NEEDS TO set this by it self
    • No Chapter marks in or within two seconds from a transition
    (Way around this last one - Export movie as QT full quality and NO Chapter marks
    Import this into a new Movie-project and now You are free to set C-Ms where You want
    them except at very beginning - still)
    Material used to build movie
    • video - I use streamingDV (or convert all other to this e.g. .mp4, .avi, .wmv etc)
    • audio - I use .aiff 16-bit 48kHz or from Audio-CD (44.1kHz) - no .mp3 or direct from iTunes
    • photos - I use .jpg - no .bmp etc
    Trash iDVD pref. file and run Repair Permissions - and have a re-try.
    from post ??
    May not be relevant, but I had the same problem with iDVD, where burned DVDs showed a green screen. It was cured by quitting Quicksilver and Quickeys as well as disabling sleep and screen-saving
    Yours Bengt W

  • OBI EE 10g: Bridge tables and Based on Dimensions Aggregation

    hi experts,
    i am working on OBI EE 10 g (10.1.3.4)
    The BM&M layer consist of:
    1) Logical fact table "Sale_Indicators"
    Fields: SALE_ID (PK, FK),
    D1_ID (FK),
    D2_ID (FK),
    Indicator1 (measure, level of granularity: SALE_ID),
    Indicator2 (measure, level of granularity: SALE_ID),
    Indicator3 (measure, level of granularity: SALE_ID)
    2) Logical dimension table
    "Sales" (PK: SALE_ID),
    "D1" (PK: D1_ID),
    "D2" (PK: D2_ID),
    "Customers" (PK: SALE_ID, CUST_ID) - bridge table!
    "Products" (PK: SALE_ID, PROD_ID) - bridge table!
    3) Dimensions: SalesDim, D1Dim, D2Dim, CustomersDim, ProductsDim
    If fact table is joined with bridge table, the number of rows in fact table is multiplied, for example:
    D1_ID | SALE_ID | CUST_ID | Indicator1
    777 | 1 | 14 | 10
    777 | 1 | 17 | 10
    777 | 2 | 15 | 12
    888 | 3 | 16 | 20
    888 | 3 | 17 | 20
    888 | 4 | 19 | 30
    I need to get report:
    D1_ID | Indicator1 (SUM)
    777 | 22
    888 | 50
    and with filter by customer, for example (CUST_ID = 17):
    D1_ID | Indicator1 (SUM)
    777 | 10
    888 | 20
    i am trying to use "based on dimension" aggregation, for example (Indicator1):
    Dimension Formula
    CustomersDim MIN
    ProductsDim MIN
    Others SUM
    The generated physical SQL performs joining EVERY dimension to the fact table, even though they are not included in the final result set.
    Is there any way to tweak logical or physical model in order to eliminate excessive joins?
    Thanks in advance!
    Edited by: 859688 on 31.10.2011 4:04
    Edited by: 859688 on 31.10.2011 4:06
    Edited by: 859688 on 31.10.2011 4:08

    I found this text on the help, but I didn't understand, because when I check the "based on dimensions" check box, I can choose aggregation rules for each dimension, not only the time dimension.
    Also, I found in the help menu:
    "In the Aggregation tab, select the Based on dimensions check box.
    The Browse dialog box automatically opens.
    In the Browse dialog box, click New, select a dimension over which you want to aggregate, and then click OK.
    In the Aggregation tab, from the Formula drop-down list, select a rule."
    I did the same steps suggested by the text above, but it didn't work.

  • Using intersection of dimension members in a SINGLE column/row name

    I need help understanding how a single row/column name in a report can be populated with an intersection of two different dimension members of an Essbase cube (ASO). For example, suppose I have two dimensions members in my cube - Sales and Qtr1. Now I want to create a single column-name in my Smartview or FR report called "Sales in Qtr1" that would store values for Qtr1->Sales. Also, i want to have a single column name such as (Qtr1->Sales % Qtr2->Sales).
    Is this done via a report script or some other method?
    My report would look as follows:
    Sales in Qtr1 | Sales in Qtr2 | Qtr1 Sales as a percent of Qtr2 Sales
    Region1 100 | 200 | 50%
    Region2 25 | 100 | 25%
    Would appreciate any guidance.
    Thanks.
    Axe

    Getting the data the way you've described is really easy, just nest the dimensions in Excel (or whatever reporting tool), one dimension over the other.
    It's the same for rows as it is columns (okay, in rows instead of columns).
    Essbase is very good about doing asymmetrical reports. Take a look at the DBAG and scroll down for the section labelled "Generating Symmetric Reports" -- the second example shows a asymmetric report.
    Making the label one cell? A bit hard in Excel -- you'd have to create separate retrieve ranges and report ranges or play a game with hiding rows. Very easy indeed in Financial Reports -- you basically hide a row and put whatever custom label you want in the dimension that remains (technically speaking you could hide both rows and do this with a text row -- whatever you prefer -- but I've generally seen this with the former technique.
    Regards,
    Cameron Lackpour

  • Filter in Analysis for Office

    Hello,
    I have an Analysis workbook with a couple of crosstabs and a lot of graphs.
    For those I'm using filter components.
    When the workbook was saved the display setting (in the BEX query) of the filters (dimensions) were Key + Text.
    Now the users want only TEXT and that was changed in the query.
    Creating a new workbook based on this query as  datasource works fine, and the filter dimensions are shown as text.
    My problem is that the "old workbook" is still showing Key + Text even though I delete the filters and create them again.
    It seems like there is an old "connection" left.
    Any ideas how this can be fixed ?
    Thanks
    Björn

    Hi Scott - could you share the versions of Analysis Office/PowerPoint you are using?  I am using 1.5 and I see the filter option in PowerPoint - see below:
    Maybe you could share screen shots?

  • Based on dimension aggregation

    I have a fact table with 2 sources. One of these sources has only one measure and I am having problems with it.
    This measure must use based on dimension aggregation, but it don't work. When I set this option, the measure shows a blank value in Answers, but when I switch to a default aggregation rule (not based on dimension), like sum or max, the value is shown correctly in Answers.
    My doubt is: is it necessary any other configuration on dimensions or fact tables in order to use based on dimensions aggregation? I just change the value in the aggregation tab of the measure, is there any other step necessary?
    Thanks

    I found this text on the help, but I didn't understand, because when I check the "based on dimensions" check box, I can choose aggregation rules for each dimension, not only the time dimension.
    Also, I found in the help menu:
    "In the Aggregation tab, select the Based on dimensions check box.
    The Browse dialog box automatically opens.
    In the Browse dialog box, click New, select a dimension over which you want to aggregate, and then click OK.
    In the Aggregation tab, from the Formula drop-down list, select a rule."
    I did the same steps suggested by the text above, but it didn't work.

  • Can I "keyframe" or "animate" filter settings on a clip?

    I'd like to change the levels settings and other video filter settings over time on a single clip, in a gradual, smooth way. Is there a way to do this? Setting keyframes only seems to remember things in the Motion tab.

    What version of FCE are you using?
    The keyframe button in the Canvas is only for motion parameters. Filters can be keyframed in the filters tab of viewer in recent versions of FCE.

  • Performance Point Decomposition Tree does not Showing the Any Dimensions

    Hi,
     Actually i have created three (dimension) filters in Dashboard which is associated with Analytic grid. Among those three dimension two of them in Analytic Chart 'Bottom axis' remaining one dimension in Analytic Chart 'Background'.
    Now the decomposition tree is not working. but i would moved BackGround dimension to bottom axis then then decomposition  tree is working fine.
    Why? Does decomposition tree not work, if any dimension would be in analytic chart 'BackGround'.
    Can anyone tell answer for issue? Any work around for this?
    It would be great if any one would give a correct Solution. Thanks in Advance.
    Thanks & Regards
    Poomani Sankaran

    One  observation which is, if All the filter Dimensions would be in bottom axis  then the Analytic grid Decomposition Tree is working fine. If i would keep any one of dimension in 'Back Ground' then it is not showing any dimension in Decomposition
    Tree.

  • Attribute Dimension or Alternate Hierarchy

    Hello,
    We have a sparse dimension that has probably around 1500 members. We need to report on these members in different views then the current hierarchy holds. Is it best to create an alternate hierarchy with these 1500 members or to tag these members with various attributes and then use the attribute in the different reports. I did some research and found that attribute dimensions often have slow FR performance since they are dynamic, however, I feel like 1500 shared members is a lot. Any tips, tricks, advice would be greatly appreciated.

    Hi,
    I don't think 1500 shared members is a concern in and of itself (unless you are putting them all under one dynamic parent!). You are correct there could be some response time impact with attribute dimension retrievals, but then shared members under dynamic sparse parents may present similar concerns.
    I would encourage you to think about the structure and navigability desired. You should keep in mind that shared member rollups can only be used in reports consistent with the dimension they are in. One advantage of attribute dimensions over shared rollups is that, only with attribute dimensions, can you cross-tab report against the base dimension. If your users care about being able to see certain alternate groupings across the main dimension, then I would suggest going with attribute dimensions.
    There are other considerations. For instance, adding a large number of shared rollups in your BSO anchor dimension (the physically last dimension with hierarchy), you put more demand on Essbase calculator cache.
    Out of time for now. Just sharing some initial thoughts I hope you will find helpful.
    Darrell Barr

  • A grey filter seems to cover my RAW images after importing.

    First, I import RAW images from my Nikon 1 v2.
    When I start to look at the images at first they appear clear and bright. Within a second it seems that a light grey filter descends over the image, making it look dully and blah. RAW tends to look a bit blah anyway, but this is a muddy appearance.
    I don't understand the change back to the image I had first glimpsed when first opening the image. It's just about impossible to reclaim the first appearance using adjustments.
    Any body have any idea of what is happening?
    Thank you.
    Aperture: 3.5.1
    Mavericks: 10.9.4
    8 gb emmory
    2.9 GHz Intel Core i5

    Kirby,
    Thanks for the quick response.
    I went back and re-imported the pics into Aperture using the "RAW only" option. No change, a quick glimpse of bright clarity then covered by mud -- so to speak.
    I then tried iPhoto. The jpg pics in iPhoto  are slightly, but noticeably, brighter and crisper in iPhoto.
    Given: RAW files are made to need adjustment with all the data they hold. Maybe my problem is that I haven't figured out which combination of adjustments to bring about the facsimile of the original image. It just seems like looking through a windshield that can't be cleaned. Admittedly it is a small adjustment necessary, but I'm picky.
    Thank you.
    Scott

  • Current View Filter

    Hi Experst;
    I have two questions about CV filtering.
    I am trying to select dimension member on buttons. Using with "MNU_ETOOLS_MEMBERSELECTOR_A" but i want to filter dimension member. I have a lot of member in dimension so i need to filtering.
    1-Is there any way to make a filter for "MNU_ETOOLS_MEMBERSELECTOR_A" function ?
    2-Can I use "EVCVW" function in macro ?
    Thank you for help.

    It is possible to get the username in the report. This is possible using the EVUSR() function.
    Also, it is possible to put a property based filter in the EVCVW() function, using the following syntax: EVCVW(APPNAME;DIMENSIONNAME;"PROPERTYNAME=PROPERTYVALUE").
    Using standard excel functionality, you could link this to the result of the EVUSR function and create a filter based on user name.
    Example:
    Dimension you want to filter on is Account in the Finance app. Property name is USER. The EVUSR function is in cell A1 and returns the value User1.
    Because the filter is a text string, first we need to create an excel link where you combine property name and username in the correct syntax for use in the EVCVW function. We are going to do this in cell A2. This function would come in Cell A2:
    ="USER="&A1
    This will result in the following text to appear in cel A2: USER=User1
    EVCVW syntax would be like this:
    =EVCVW("FINANCE";"ACCOUNT";A2).
    Now, if the users doubleclicks the EVCVW function, the memberselection box will open with the defined filter.
    However, if the user uses the CV box in the action pane, the filter will not be automatically applied, so you will need to explain to the users that they should use the cell you have created to apply current view changes.
    Something else you could do is use security settings in the member access profiles, but this could lead to difficulties as not al dimensions will be secured, and maybe you want to use other dimension members in other reports/input schedules.
    Regards,
    Tim Vierhout
    Edited by: Tim Vierhout on Oct 5, 2009 2:32 PM

  • Dimension through two tables

    Hello
    I have not a real star schema. One table has a subtable.
    How ca I create a dimension over 2 tables???

    In Oracle Enterprise Manager you can create dimensions based on snowflake (normalized) schemas in addition to star (denormalized) schemas.

Maybe you are looking for