Custom agg formula- all numbers same or show null

Hello,
I'm trying to develop a custom aggregation formula for a certain set of measures in a cube. The formula is as follows...take the average of the measure at any level of dimensionality for a given day, but only if they are all the same number. If any number
differs, show a null. That's probably the best way I can explain it.
For example:
10, 10, 10, 10 = 10
10, 10, 10, 11 = null
10, 10, 11, 11 = null
The users want to validate the measure at the highest level of dimensionality for a given day, and only drill down to the lower levels if at least one of the numbers differ from the others (ie a null is shown as the aggregation). I hope that explanation
makes sense.
It's been a few years since I was deep into MDX and cube formulas. Any tips on starting points, or possibility of doing this, is greatly appreciated. I've been reviewing the MDX documentation and haven't zeroed in on my potential solution yet.
Thank you.
Dave
EDIT: Just wanted to follow up on our interim solution. We created a calculated member for the average of each measure, and a separate calculated member for distinct count of the average values. This way we can see if they are all the same at a high level,
and we have the added benefit of knowing how many different values we have if any do indeed differ. Chances are this will satisfy business requirements. If we arrive at the solution I originally described above, I will follow up with how we solved it for anyone
interested.

Hi dmasino,
According to your description, you want to custom aggregation formula. If the all values in that set are same, return that value, other wise return null. Right?
In this scenario, we can use put the distinctcount() and distinct() within a IIF() condition to achieve your goal. Please refer to the query below:
WITH SET MySet AS
//put statement here
MEMBER Measures.CustomAggregation AS
IIF(DISTINCTCOUNT(MySet)=1,DISTINCT(MySet),NULL)
If you have any question, please feel free to ask.
Simon Hou
TechNet Community Support

Similar Messages

  • Discoverer reports shows 'NULL' in columns where is no data

    Hi All,
    Discoverer report is showing NULL in columns where is no data.
    please advise ASAP.
    E-biz: 12.0.6
    Database: 11.2.0.2
    Discoverer: 10.1.2.55.26
    Thanks in advance.
    Regards
    Kumar

    In Discoverer BI DEsktop By default, it uses “NULL” text, but we can show Zero or blank then that report is executed as text report.
    how can we set it as for all reports as default blank or zero.Have you reviewed the docs referenced above?
    Please see these docs.
    Discoverer 10.1.2/11g Worksheets Do Not Display Expected Null Format Setting After Modifying Tools Options [ID 311841.1]
    Workbooks Show Wrong Null Format in Viewer/Plus After New Install or Upgrade from 4i to 10.1.2 [ID 352194.1]
    Thanks,
    Hussein

  • I am changing from Word to Pages. I have created my custom template with all my styles etc and that is what comes up when I go for a New Document. Fine. How do I get it to use the same Custom Template when I use Pages to open a Word document?

    I am changing from Word to Pages. I have created my custom template with all my styles etc and that is what comes up when I go for a New Document. Fine. How do I get it to use the same Custom Template when I use Pages to open a Word document?

    The template is a document in itself, it is not applied to an existing document whether it is a Pages document or a Word document converted to a Pages document.
    You would need to either copy and paste content, using existing styles, or apply the styles to the converted Word document.
    You can Import the Styles from an existing document and those imported Styles can be used to override the current document's styles:
    Menu > Format > Import Styles
    The process is simplified if the styles use the same names, otherwise you will need to delete the style you don't want and replace it with the one that you do want when asked, then the substitution is pretty straightforward.
    Peter

  • I updated Firefox and now it will not open at all. The hourglass shows that it's working but then nothing. I went to add/remove and removed mozilla and reinstalled it and still the same thing. It worked fine before I updated.

    I updated Firefox and now it will not open at all. The hourglass shows that it's working but then nothing. I went to add/remove and removed mozilla and reinstalled it and still the same thing. It worked fine before I updated. Now I can't even remove the program at all. Why is this happening?

    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.com/kb/Safe+Mode
    Create a new profile as a test to check if your current profile is causing the problems.
    See "Basic Troubleshooting: Make a new profile":
    *https://support.mozilla.com/kb/Basic+Troubleshooting#w_8-make-a-new-profile
    There may be extensions and plugins installed by default in a new profile, so check that in "Tools > Add-ons > Extensions & Plugins" in case there are still problems.
    If that new profile works then you can transfer some files from the old profile to that new profile, but be careful not to copy corrupted files.
    See:
    *http://kb.mozillazine.org/Transferring_data_to_a_new_profile_-_Firefox

  • I just purchased the I5, and use the same itunes as my wife. All my wifes contacts showed up on my phone. Is there a way to avoid this?

    I just purchased the I5, and use the same itunes as my wife. All my wifes contacts showed up on my phone. Is there a way to avoid this?

    She needs to call the carrier on her old iPhone and have it removed from her account.
    Once she does that you will not be able to use iMessage because that only works Apple to Apple.
    You will need to use something else like Skype instead.
    Allan

  • TS1398 Hi.. My internet and wifi are working on samsung phone and hp laptop but its not getting connected to iphone ipad, only skype is coming online rest all apps and safari show no internet connection. Got new linksys router WRT160NL , but situation sam

    Hi.. My internet and wifi are working on samsung phone and hp laptop but its not getting connected to iphone ipad, only skype is coming online rest all apps and safari show no internet connection. Got new linksys router WRT160NL , but situation same. Tried reboot, renew lease, forget network, reset network setting. Pls advice

    Have you tried a simple reset of your iPod to see if that helps?  To do this, press and hold both the Sleep/Wake and Home buttons together long enough for the Apple logo to appear.
    Otherwise, have you tried any of the troubleshooting mentioned in this Apple support document?
    iOS: Troubleshooting Wi-Fi networks and connections
    B-rock

  • My iphone 5c "all contacts" list suddenly shows groups in the upper left corner and has lost the phone numbers on most of them.  how do I get them back?

    The contacts list on my iphone 5c suddenly shows groups in the upper left hand corner of the all contacts list and many of the phone numbers no longer show.  How do I get them back?  I can't seem to get the groups word to disappear.

    Hi there bvb913,
    It sounds like you may have a group of contacts hidden. While in the Contacts app, tap Groups > Show All Contacts. Take a look at the User Guide below for more information.
    Add contacts
    http://help.apple.com/iphone/7/#/iph14a87326
    -Griff W.

  • When I updated my Apple TV it shows about 10 computers  on my network when I only have one computer on my network and they are all the same....why did this happen? I only have one computer   linked to the Apple TV

    when I updated my Apple tv it now shows about 10 computers on my network which I only have one tv...how do I get rid of the other "computers" listed as they are all the same, this was not happening before I updated the Apple TV

    It looks to be a bug. A reboot to computer and/or Apple TV may resolve it.
    You can provide feedback to Apple and file a report.
    https://www.apple.com/feedback/
    https://bugreport.apple.com/

  • My 6500 Slide is showing all numbers as "Private N...

    Hi,
    Although I have updated Software, My 6500 is showing all numbers as private number.
    Can anyone help me on this stuff ?
    Regards,
    Amjad

    what do you mean all numbers as private numbers? are you referring to when you call people, and your number is displayed as "private number" to them, or when people call you and their number is displayed as "private number calling". please clarify

  • My mail outbox wont go online.  Inboxes work fine.  Just upgraded my old iMac to OS 10.6.8, kept my internet provider, entered all the same numbers and settings so can't figure out why mail won't go out.  Help.  S.T.

    My eMail outbox won't go online.  I can't send eMail messages but I am currently receiving my messages.
    Just upgraded my older iMac to 10.6.8 but kept the same eMail addresses (Google), the same provider (Cricket Broadband), and entered all the same settings in Mail Preferences and Accounts as before.
    Any suggestions as how to get my outbox online so I can send mail?
    ST

    Hello,
    Who is your eMail provider, the part after the @ sign?
    In Mail's Window Menu, choose Connection Doctor, any red dots for status, if so what is the message?
    Then click the Show Details button & Check again.
    Mail: Can't send messages, "Cannot send message using the server smtp.xxxxx.com" alert appears...
    old: http://support.apple.com/kb/TS1482
    What SMTP setting do you have for gMail?
    Did you get rid of any old passwords in Keychain Access?

  • After restoring from backup on a new phone (same model, just replacement) all my apps are showing as waiting....I have sync'd but still without any joy - this has been going on for hours

    After restoring from backup on a new phone (same model, just replacement) all my apps are showing as waiting....I have sync'd but still without any joy - this has been going on for hours

    It just means some spammer is using your email address as the sender address for their spam. This is very easy to do - anyone can do it simply by changing the From email address in their email program. It does not mean your account was hacked or you have a virus (there are no current Mac viruses on the loose anyway, nor has there been for years).
    There's nothing you can do about it. It can happen to anyone and the spammers will move on to using someone else's email address before long.

  • Tariff #, Commodity #,  HTS # and Schedule B # all are same.

    My understanding is  Tariff #, Commodity #,  HTS # and Schedule B # all are same.  Meaning, you apply and assign same 10 digit numbering scheme for the given parts.    When you import you call it HTS# or Tariff #. When you export the part # it is called  Commodity # or
    Schedule B #.
    Please correct my understanding.
    thanks
    siva

    Hi Siva,
    The Harmonized System (HS) u2013 HS Codes
    The World Customs Organization (WCO) developed the Harmonized Commodity Description and Coding System, to describe products for customs purposes. HS codes are descriptions of products specific to 2, 4, 6, 8, or 10 digit levels. The Harmonized System is recognized in 179 countries, and trade based on its classifications represents 98 percent of world trade.
    Schedule B Commodity Codes u2013 Schedule B numbers
    Schedule B commodity codes are 10-digit numeric codes used to identify products that are exported from the U.S. to other countries. They are similar to 10-digit Harmonized Tariff System (HTS) codes (the import codes) in that the groups are the same up to the 6-digit level.
    For more information on HS codes and Schedule B code listings please refer to the following resources.
    This Export America Article on Product Classification article helps to answer basic questions about HS codes and classification. It also provides resources for further assistance and links to U.S. tariff schedules.
    http://www.ita.doc.gov/exportamerica/Volume 2/April 2001/ta_asktic.htm
    U.S. International Trade Commission u2013 HS Codes Information offers information about HS codes and tariff rate information.
    http://www.usitc.gov/tata/index.htm
    The U.S. Census Bureau Foreign Trade Statistics is a U.S. government search engine of U.S. Schedule B classification codes.
    http://www.census.gov/foreign-trade/schedules/b/index.html
    Tariff and Tax information
    http://www.export.gov/logistics/country_tariff_info.asp
    Thanks,
    Prarit

  • BI Report showing NULL for decimal numbers

    Oracle Business Intelligence 11.1.1.7.0
    In an earlier version of BI we had an issue with our Reports where any numbers with digits after the decimal would return a blank result in the report (the correct numbers would still show up in the Data Model's sample data), but only when viewed as an Interactive report (PDF views were fine).  However, after an upgrade it happened with any report views, not just the Interactive Report view.  I found a work-around for this were I CAST each number column to Double Precision, and then it would show up fine.  That worked for a few months, only now it doesn't work at all.  After speaking with the system admin, I do no think any upgrades happened between when the CAST solution started working and when it stopped working.
    Has anyone else witnessed this issue?

    Okay, apparently the CAST solution is still working, just not when I use a SUM (have not tested other aggregates).  Creating a sub-query like below, however, works:
    SELECT CAST(result AS DOUBLE PRECISION)
    FROM
    SELECT SUM(col_1) AS result
    FROM table_1

  • I've upgraded to OS 10.8.2 and my Bowers and Wilkins MM-1 Speakers were working fine until today, and now they won't play any sound at all, even though iTunes shows the audio is playing. I've tried both the headphone jack and the USB port. Please help!

    I've upgraded to OS 10.8.2 and my Bowers and Wilkins MM-1 Speakers were working fine until today, and now they won't play any sound at all, even though iTunes shows the audio is playing. I've tried both the headphone jack and the USB port. Please help! I don't want to have to be stuck using my internal speakers!
    Thank you,
    Chris

    Michael,
    Thanks. I haven't mixed down the audio or checked the number of tracks in Prefs. Good points.
    As far as a mixdown goes, I'll definitely give it a try, though I wonder whether or not the tracks will be recognized during mix down recording - given that you can't hear either of those segments in playback. Just have to try.
    Re the preferred number of allowed tracks - I'll go check as soon as I send this off, but I'm not sure that applies in this case, since the two Channels containing the segments that are pinked out are not in additional tracks. I should have mentioned that other audio clips and segments on the same Channels in the SAME tracks ARE heard in playback. As are two additional track in the 2nd Sequence. It's only when the two sequences are joined that the pink tinted segments can't be heard. Within the sequence the same audio cuts playback as they should. Thanks again &
    Best regards,
    David

  • Not all of my emails show up in my iphone account.  Only about two weeks worth - how can I access all of my inbox emails?

    Not all of my emails show up in my iphone account.  Only about two weeks worth - how can I access all of my inbox emails?  I have hotmail and am not sure if this is a sync glitch or what...?

    How are you accessing the "7 days" account: IMAP or POP?
    Are there other computers accessing the same account?

Maybe you are looking for

  • Error in writing an Ant task for creating a new connection pool.

    I have written the following ant task to create a new connection pool in weblogic 10.3. <target name="pool.dev">      <wlconfig url="http://localhost:7001/" username="weblogic" password="weblogic">      <query domain="C:/weblogic/rtg-L0" name="myserv

  • Windows 8 - printer default preferences per profile

    Hello,  Let me begin with stating that I have no idea if this question is in the correct forum, so I apologize prior to asking.  Maybe someone could point me in the right direction if so.   The issue I'm having is pretty simple, I have 5 Dell XPS lap

  • Email form guru needed

    Hi, Any help greatly appreciated from an email form guru! I have a email form that returns emails to my address - but no others. It is laden with a load of content and HTML. I have checked spam filters and junk inboxes and I'm at a loss as to why thi

  • 10.5.2 Time Machine backs up--after about 5-10 minutes

    On 10.5.1, my TM backups took about 30 seconds. The first backup I did on 10.5.2, it took about 10 minutes, with my MPB's fans roaring--but the backup eventually completed. I just assumed it would be one-time thing associated with the upgraded OS. I

  • Problems Installing Win7 using External, USB DVD Drive

    I have a mid 2010 15" i7 MBP which I upgraded to from 4GB to 8GB RAM courtesy of OWC.  I recently upgraded the 500GB 7200RPM HD with a 240GB OCZ Vertex 3 and using an OWC Data Doubler, I replaced the DVD SuperDrive with the 500GB Hard Drive. I used a