Tabular: set measure to blank() for certain dimensions

Hi, I know there is no scope() equivalent in dax but i'm hoping there's some other combination of functions that will give me the same result
I have a stock movement fact table and I have two running totals on it. One is is a 'stock to date' value while the other is a 'season to date' that resets to 0 at the start of each season (ie a custom YTD running total)
The season to date value is created using a second date dim because the season start and end dates aren't static and change year to year.
Here is the DAX for the season to date measure
Season to Date:=[Sum Quantity](ALL(dimDate),
FILTER(
ALL(dimTransactionSeason),
dimTransactionSeason[DayOfSeasonID]<=MAX(dimTransactionSeason[DayOfSeasonID])
VALUES(dimTransactionSeason[TransactionSeasonID])
I've set the date dim to be ignored, but that just means that the current season to date value is repeated. I'd rather the result be blank.
Is there a dax function or combination of functions that will allow me to check whether the measure is being sliced by dimDate and replace it with BLANK()?
I though i could use some kind of logic like countrows(dimdate)<>countrows(all(dimdate)) but i'm too new to DAX to figure this out by myself..
Am I on the right track or is this not possible with tabular at the moment?
thanks
Jakub @ Adelaide, Australia

Hi Jakub,
In your scenario, you add a season to date measure to calculate the running total for each season, and now what you want to is that reset the measure to blank at the beginning of each season, right? Generally, the season start and end dates are static, so
the running total aggregate automatically resets itself at the beginning of each season. In your scenario, what do you mean the season start and end dates aren't static and change year to year? Please refer to the link below which might helpful for you.
Running Total Techniques in DAX
Hope this helps.
Regards,
Charlie Liao
TechNet Community Support

Similar Messages

  • Tabular Form Hide Row Selector for certain rows?

    Hi,
    I was curious if it is possible to hide the row selector checkbox for certain items? For instance
    if a certain value is in a certain column in a row I want to hide the checkbox and in other cases show it...
    Thanks in advance!

    Hi,
    That setting does only work for an entire column.
    There are at least three possibilities:
    1 - Create the checkbox using APEX_ITEM.CHECKBOX (see: [http://download.oracle.com/docs/cd/E10513_01/doc/apirefs.310/e12855/apex_item.htm#CHDDCHAF])
    2 - Create a custom "Named Column (row template)" report template - where you can define the layouts for each row based on up to 4 conditions
    3 - Use javascript to scan data in the other columns and disable or remove the checkboxes where required
    Option 1 is probably easiest but you would need to remove the Row Selector from the report as that is no longer required
    Andy

  • Tabular Form - Read only condition for certain users

    Is it possible to make a select list field in a tabular form read-only to certain users? Here's the situation:
    The tabular form lists the users who need to select "Approve" or "Reject" in that field (they are approving or rejecting an engineering change)
    I want all of them to see the approval/rejection of their team, but only have access to edit the select list associated with their record.
    Thanks in advance.
    Apex 4.0.0.00.46

    You could use either "authorisations" tab or "conditional display" for the relevant column attribute.
    Report Attributes->Column Attributes->authorisationsIt would be better to have some more detail about what you are trying to get (maybe a quick mock up of the form, for example) but, I can envision something along the lines of the following:
    For each approval/rejection field:
    1. Create an authorisation appropriate for access to to each approval/rejection field e.g. authorisation scheme "FOO"
    2. In the relevant fields column attributes, set the authorisation to "FOO"
    3. now create a read only "public" copy of the above field, using the "display as text (based on LOV does not save state)" - set the authorisation for this field as "{NOT FOO}"
    (if you don't want to use authorisations, you could build an equivalent using "conditional display" instead, which is basically the same thing, except column specific)
    The downside is of course that you're duplicating fields in your query, which creates a bit of redundancy. There may be better ways to achieve this (maybe you could make use of the APEX_ITEM api, for example) but this is fairly easy to set up IMO.

  • Set measure to NULL for dates in the future

    Hi all
    I am trying to set the values of a measure to NULL in case the date is in the future.
    I have a time dimension and fact table. What I have so fat is the following:
    IIF([Date].[CalendarDetailed].CURRENTMEMBER.Name < format(now(), "yyyy-MM-dd"),
    SUM
    PERIODSTODATE
    [Date].[CalendarDetailed].[(All)],
    [Date].[CalendarDetailed].CURRENTMEMBER
    [TimeUtility_All].[TimeUtility].&[1],
    [Measures].[Quantity_Change]
    ), NULL)
    This actualy works quite well. The only problem I have is, that on every month level it show me NULL. I guess it is, because the value for a month is e.g. "January 2014", which doesn't work with the condition.
    How can I modify the script, that I also get a value on the month levels.
    Thanks
    Lukas

    I typically use the function ISEMPTY. I'm not a master at MDX so I can't tell you the exact syntax without actually playing around with your query. You could try something like this:
    IIF(ISEMPTY([Date].[CalendarDetailed].CURRENTMEMBER.Name, NULL,
    [Date].[CalendarDetailed].CURRENTMEMBER.Name < format(now(), "yyyy-MM-dd"),
    SUM
    PERIODSTODATE
    [Date].[CalendarDetailed].[(All)],
    [Date].[CalendarDetailed].CURRENTMEMBER
    [TimeUtility_All].[TimeUtility].&[1],
    [Measures].[Quantity_Change]
    Good Luck.

  • Why does FCP set 30fps TC Rate for certain audio clips that lack TC stream?

    Hello folks,
    I'm cutting a DVCPRO HD 720p50 feature at 25fps on FCS2 w fcp 6.0.3. (Used a PAL Panasonic HVX200)
    When I import certain of the audio files from the location sound recordist, FCP lists the file as having a TC Rate of 30fps -- and puts a greenbar over my audio track in the 25fps timeline. the audio folks were not TC locked to the camera, so I'm in the midst of doing a manual post-sync (yeah, yeah) of all of these files and Merging them into new Master Clips (1V+6A) for editing.
    I already learned the great trick from this forum of importing the audio takes folders from each day and then disconnecting them to set them all as dual mono, then reimporting -- makes my Merge clips work the way I had hoped they would.
    But this 30fps/25fps issue is really holding me up. This phenomena of tracks mysteriously being picked as having a TC Rate of 30 is rare, like 50 of the 400 audio files, but I can find no way within FCP to correct this setting nor any indication why these files were chosen.
    I can't change the TC from 30-25 when a clip is online or offline -- I get the message "The media of one or more selected clips does not support the chosen timecode rate of 25, and are left untouched."
    Any help will be wildly appreciated -- I am eager to complete this sync project and get cutting!
    matt

    I got help for this issue over at CreativeCow's FCP pages -- it turns out, all I had to do was open a new project using an easy setting and project setting for vanilla PAL 25 fps SD stuff. All of the audio was correctly brought in -- then I disconnected all of the clips, made them dual mono, reconnected them, and copied them over to my old gristly project folder.
    Now I can marry these dual mono 25fps files to the video files without having FCP incorrectly compensate for "30fps" by speeding these clips up slightly, so things stay in sync.

  • Set message default format for certain recipients to SMS

    We travel a lot and always switch off data roaming.  Our children have iPhones and often send us messages.  These always default to iMessages. 
    However it can often be days before we can connect to the internet and then we get a batch of messages.  is it possible to set the default settings on the children's iPhonmes so that messages to mum and dad always go as SMS messages? We know they can resend the messages as text after they have gone as an iMessage but they tend to forget!!

    That means i still have to change the name for each attribute?
    Could it make it such that when the entity obejct is created, the name is already following as it is from the database? i.e some_column_name in the database will not become SomeColumnName in the entity object.

  • Set color in TextArea for certain String

    I need to highlight some Strings in different color than the setForeground() in the TextArea. Is it possible and how can I accomplish it?
    Help is great appreciated.
    Anna

    I am able to use JTextPane to highlight certain string now.
    Thanks a lot.
    Though I am having problem on mouse double click on a file name.
    For TextArea, the getSelectedText() will pick the full path name of the file. For JTextPane, the selected text is just part of the string.
    Following is the text:
    Test report is saved in file C:\tests\pf2150\JTAG\888_test.rpt
    The file name is
    C:\tests\pf2150\JTAG\888_test.rpt
    My mouse is over the file name but double click only picks JTAG or pf2150 or ...
    Could anybody help?
    Anna

  • HT201299 Not enable or disable cellular data for certain iOS apps and features from setting? I keep it off but when I go to other app it on automatic

    I can't  enable or disable cellular data for certain iOS apps and features from  setting.
    When I off data for specific application and go to other option it automatic on all application
    Any one can help

    SOLUTION! (NO NEED TO RESET YOUR IPHONE SETTING!)
    I have the same issue for the last two weeks. But i have already managed to solve the issue all by myself. When i go to Settings > Cellular > below the tab "use cellular data for:", i turned off some apps which i didnt want to use with cellular data. As soon as i go back to Settings, and then i went back to Cellular, the apps which i had switched off earlier, automatically turned back on.
    Here's the solution:
    Either you're using wifi or cellular data, first of all you're gonna hafto turn on the cellular data use for App Store. Once you have turned it on, go to App Store application. Update ALL the apps which have new updates available. If it asks you to log in your App Store, just do so. If there's something wrong with your debit or credit card information, it will ask you to update to a different card. Just do what it asks. Put in a new credit or debit card info and fill in the forms provided. The card you're using must be usable and has usable balance in it. Let's say atleast $10 to $20. As soon as it confirms your card successfully, the app updates will start automatically. Continue to update all the apps. After all updates are finished, go back to Settings > Cellular. Try to switch on or off some apps for data use and recheck.
    Try it yourself! Have a nice day and don't put a blame on Apple for this.
    From Malaysia, with love.
    Please hit LIKE button if this solve your issue. Thank you very much! (:

  • Search for certain Characters within set of Characters - in a field

    Hello -
    I know a search can be made within a field for a word, but I am not to sure, or I don't know how to accomplish this...To do a search in a field for certain characters within a larger set of charcters.
    For example: I would search, in the Call Description field, for DXXXX within CA0001DXXXXYYY or search for LXXXX within CA0001LXXXXYYY, the X is numeric characters and the Y's are Alpha characters. Can crystal accomplish this....
    Thanks for your gracious help....
    G.

    Like I said earlier, this code:
    If instr({database_field}, 'DXXXX') > 0 then "String Found" else "Not Found"
    cannot be used in a Record Selection formula.
    The following code can be used in the Record Selection formula:
    Instr({database field}, "string") > 0
    If you wish to search for 'D4444' in the field and return records where a match is found, you would use:
    Instr({database field}, "D4444") > 0
    -Abhilash

  • Does anyone know why video image in events section has a certain dimension and instead when I import same video in a clip, the size of video image is minor? Thanks for help

    Does anyone know why video image in events section has a certain dimension and instead when I import same video in a clip, the size of video image is minor? Thanks for help

    This may depend on your chosen encoding options for the Mails (MIME vs. Base64 or similar) and/or the mails being reduced in size and sliced up server side. Apple (and Google) do stuff like recompressing images when viewing mails on mobile devices from an Apple ID or Gmail account... You have to turn it off in their web frontends....
    Mylenium

  • A quick way to set different color for certain items in JList?

    is there a quick way of setting different color for certain items in JList?

    Either use HTML strings as the values in your JList (quickest, but may not be the most convenient, especially if your model isn't just text), or create your own ListCellRenderer (e.g. extend DefaultListCellRenderer).
    There is no such thing as "list.setItemForeground(int index, Color c)". You'll have to use one of the methods above.

  • How to copy data for certain member from one dimension to another dimension

    Dear ,
    I want to copy data for certain member ("511102") from one dimension to another combinations of dimensions ,
    I have the following combinations for "511102" :
    _("Budget2012","FY12","Working.V01","SAR","BegBalance","1011","G_10","custom Grades")_
    I want to copy "511102"  to "salary"
    -salary have the following dimensions :
    _("Budget2012","FY12","Working.V01","SAR","BegBalance","General group","All grades","General Employees")_
    , I don't know if I could do it by datacopy of cross dimensional , But I don't HOW >>>
    Thanks in advance

    FIX("Budget2012","FY12","Working.V01","SAR","BegBalance","General group","All grades","General Employees")
    "salary"="511102"->"1011"->"G_10"->"custom Grades";
    ENDFIX
    or
    FIX("Budget2012","FY12","Working.V01","SAR","BegBalance")
    DATACOPY "511102"->"1011"->"G_10"->"custom Grades" to "salary"->"General group"->"All grades"->"General Employees";
    ENDFIX
    Key thing in datacopy is to place the dimensions in cross dimension in the same order. Both sides (before and after "TO") should have equal number of dimension members specified.
    Cheers,
    Alp

  • 206 unable to set alert only for certain group

    Hi,
    is it a symbian unwanted feature that user is unable to set Nokia 206
    profile to alert for certain group (even though this kind of functionality is
    available on this phone)?
    To be more precise user is able to set profile to alert only for certain
    group but this setting has no effect (phone rebooted, groups recreated, etc. no effect)
    This feature has been available and workin in previous Nokia phones
    since last decace - is it a software quality issue or what.
    Best regards,
    Hez

    It is the Application Pool account making the query to retrieve the groups, so you would need to establish a trust from Domain B -> A.
    Trevor Seward
    Follow or contact me at...
    &nbsp&nbsp
    This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

  • Can't set plugins (like Quicktime, to be run in FF) for certain file types

    When I go to the application tab in options, I don't have the option to select a plugin for certain files - I'm trying to get Quicktime to open mp3s in Firefox, I know it can, it use to do that on my old computer, but Firefox doesn't give me the option - I see it listed for other files, but it doesn't appear for this one.
    == This happened ==
    Every time Firefox opened

    Still more data. iTunes on the Vista machine will still not allow me to change the location of the iTunes Folder with the Browse button. It acts like the network doesn't exist.
    But, surprisingly, if I go to File-Add File to Library, the network appears! Even stranger, File-Add Folder to Library, the network does NOT appear.
    Again, the network is clearly operationaly, and iTunes can even see the network in the Add File menu, but refuses to see it in the Advanced menu or Add Folder.
    It's not that Apple doesn't want me to be able to do this, because all of my XP machines running 7.6 do this flawlessly. There is clearly some bug between 7.6 and Vista.
    Rummaging around the forums convinces me that this is a pretty common problem, but I haven't found an answer yet.
    Thanks for any help,
    Shawn M.

  • Can I set a time limit for connection to a certain WLAN?

    I would like to set a time limit for how long a client can be continously connected to the WLAN that provides my guest internet access. The user name/password is hosted on my ACS and authentication is provided by my Cisco NAC. I am using 5508 controllers (7.02) and WCS.
    Somewhere in this combination of stuff, there has to be a way to set a two hour time limit.

    If you are looking for your guest to get kicked off which requires them to log back in .. One option would be to set the WLAN session timeout to 2 hours.
    "Satisfaction does not come from knowing the solution, it comes from knowing why." - Rosalind Franklin
    ‎"I'm in a serious relationship with my Wi-Fi. You could say we have a connection."

Maybe you are looking for

  • How can I print a CD cover from an i Tunes downloaded CD

    I would like to print some album covers for CDs that I have burned to disc from i Tunes album purchases is it possible?

  • IS THIS LEGAL ? I HAVE SERIOUS DOUBTS !

    I have just seen an advert for the Full Retail FCE 4 from a POWER SELLER on eBay. The price is £50 as opposed to £129 normally. This is the explanation he gives for the low price:- "In this auction we have another great deal for the professioanl vide

  • LR3 Bug - No import dialog and menu flash

    If I go to the "File" menu and choose "Import photos" nothing happens; when I try again, the menu (and all others) will just flash whenever I try to select it.  I did notice that the import progress bar above the navigator panel in the Library Module

  • Axis DIME attachments

    Hi everybody... I'm sending a PDF file as response from an axis (1.3) web service using SOAP with attachments, however *.NET* clients won't be able to read it. So i was wondering if there is a way to send the attachments as DIME (supported by microso

  • IPhone stays black after reboot/restore. No logo on reboot.

    My girlfriend dropped her iPhone 4 and the screen went black. I tried a reboot, restore, putting it in DFU mode...nothing seems to work. I'm afraid she may have busted something internally. It still rings when you call, still vibrates and still activ