Color formatting in SSAS

Using SQL Server 2008 R2:
I have a star schema with a fact table containing the following:
ID BIGINT IDENTITY, FK_Dimension1 BIGINT, FK_Dimension2 BIGINT,
dataValue NUMERIC(20, 8), classification NVARCHAR(20)
The classification defines the security classification for each dataValue, and can contain either "public" or "confidential".
I've created a degenerate dimension which contains the classification field, and the dataValue resides in the associated measure table.
My requirement is to format the dataValue in any tool that is rendering the data as RED if any value in the aggregation of that field contains an associated classification of "confidential". So for example if in an excel pivot table I was displaying
the aggregation of 3 values and one of them was confidential then the value should display as red text.
I have the following MDX query in my cube calculations to handle the formatting:
CALCULATE;
SCOPE
[Measures].[dataValue]
If([MyDegenDimension].[Classification].[Confidential]) Then
Fore_Color(This) = 255
End If;
END SCOPE;
This works great whenever there are values in the dataValue field other than zero. If I drill down in my pivot table to show a single value that happens to be zero then the color formatting does not apply. The business requirement is that any confidential value
should be flagged as red, and it's valid that a zero value could be confidential. Note it displays the dataValue as red even if the classification dimension is not used in the pivot table.
Is there any way I can alter my MDX query so that it works for zero values as well?

Hi Greg,
According to your description, you need to set the measure value to red when associated classification measure value is "confidential", right?
In your scenario, there is a classification value for each record, right? In this case, you can create a measure based on classification, then set the DataValue measure value's color based on the classification measure. Here is the sample query for you reference.
CREATE MEMBER CURRENTCUBE.[Measure].[X] AS [Measures].[DataValue]
, FORE_COLOR=IIF([Measures].[Classification]="confidential", RGB(255,0,0), RGB(0,0,0))
, BACK_COLOR=RGB(255,255,255)
, FONT_SIZE=10
, FORMAT_STRING='#,#.000'
Reference
http://msdn.microsoft.com/en-IN/library/ms145573.aspx
Regards,
Charlie Liao
If you have any feedback on our support, please click
here.
Charlie Liao
TechNet Community Support

Similar Messages

  • In competitive exams photo in "true color" format.... How to do it in adobe photoshop please replay it.....

    In competitive exams photo in "true color" format.... How to do it in adobe photoshop>>> please replay it.....

    Mayuk, you are not making any sense here.
    True color (24-bit)
    "True Color" redirects here. For images with natural color rendition, see true-color.
    http://en.wikipedia.org/wiki/File:Truecolor.png 24 bits (16,777,216 colors, "truecolor")
    True color supports 24-bit for three RGB colors. It provides a method of representing and storing graphical-image information (especially in computer processing) in an RGB color space such that a very large number of colors, shades, and hues can be displayed in an image, such as in high-quality photographic images or complex graphics. Usually, true color is defined to mean 256 shades of red, green, and blue, for a total of 224 or 16,777,216 color variations. The human eye can discriminate up to ten million colors.[13]
     Color images composed from 3 grayscale images A, B & C assigned to R,G & B in different orders.
    "True color" can also refer to an RGB display-mode that does not need a color look-up table (CLUT).
    For each pixel, generally one byte is used for each channel while the fourth byte (if present) is being used either as an alpha channel, data, or simply ignored. Byte order is usually either RGB or BGR. Some systems exist with more than 8 bits per channel, and these are often also referred to as true color (for example a 48-bit true-color scanner).
    Even with true color, monochromatic images, which are restricted to 256 levels, owing to their single channel, can sometimes still reveal visible banding artifacts.
    True color, like other RGB color models, cannot express colors outside of the gamut of its RGB color space (generally sRGB).
    Macintosh systems refer to 24-bit color as "millions of colors".
    RGBA color space, or 32-bit color, is a variant of true color in which the additional 8-bit is allocated to transparency and indicates how transparent is the element to which the color is assigned, when overlaid on other elements.

  • Scanning conflict   Acrobat 9 pro   "Color Format Selected Not Supported"

    I have had several conflicts with Adobe Acrobat 9 and my HP C5180 printer/scanner/copier.   I have downloaded new drivers from HP.   When I try to create  a PDF from the scanner,  I get this conflict warning:   "Color Format Selected Not supported".    So, I change the color format selections in both HP and Acrobat and I still get the warning.    I must admit I haven't tried the black and white color format.  But I want to scan simple color images.  No luck.  
    Has anyone else had such a problem?

    This may have nothing to do with your problem, but -- at least with Acrobat 8, there is a 100MB limit to the scanned image. Are you trying to scan something larger than that?

  • Unable to apply color formatting to document library custom view using javascript

    Hello,
    I have applied color formatting to some values in Document library at "Allitems.aspx" page.
    Created one view where record of library displaying as per sort rule and trying to apply the color formatting on that view, but its not getting apply.
    also tried to insert that list as web part in one page with the same view(created by me) and tried applying color..but not working.
    I used below script for color formatting, included in script editor web part:
    <script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.10.0/jquery.min.js"></script>
    <script type="text/javascript">
    $(document).ready(function()
    $Text = $("td.ms-cellstyle.ms-vb2:contains('Very limited risk - acceptable A')");
    $Text.css("background-color", "#7FFF00");
    $Text = $("td.ms-cellstyle.ms-vb2:contains('Measures Required (in 6 months) - M')");
    $Text.css("background-color", "#D2691E");
    $Text = $("td.ms-cellstyle.ms-vb2:contains('Immediate measures required - I')");
    $Text.css("background-color", "#6495ED");
    $Text = $("td.ms-cellstyle.ms-vb2:contains(Stop work until measures are taken - S)");
    $Text.css("background-color", "#DC143C");
    </script>
    Could please suggest a way out.
    Thanking you in advance.
    Regards,
    Jayashri

    Hi Jayashri,
    Follow the steps to debug your JS code, preferable in IE browser
    Press F12 to open your developer tool
    Select Script tab
    Search for your code, set debugger point by clicking on the left extreme position on line numbers
    Click on Start debugging at top, if its not there in your browser just refresh the page, it will hit the debug point.
    Hope it will help you in debugging your code, if you need any further details about debugging this, mail me @
    [email protected]
    Thanks
    Shakir

  • RGB vs. CMYK color formats

    I have an HP6600 and want to print in RBG color formating, not sure if default might be CMYK ??  colors are not printing in the proper colorations in pdf files received using RBG formating designs.  Can anyone advise??  Can this be viewed or changed in this printer?

    Hi moll4,
    Welcome to the HP Support Forums! I understand you would like to print in RBG color formating, but would like to know if the default is CMYK.
    To get a better understanding, take a look here: Overview of Advanced Color Management
    Support for ICC profiles is available in printer driver version 5.1 and later. ICC enables profile-based color management solutions. ColorSync and Windows ICM are specific implementations of ICC color management. For more general information on ICC color management, please see www.color.org.
    I hope this helps!
    Thanks,
    HevnLgh
    I work on behalf of HP
    Please click “Accept as Solution” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos Thumbs Up" to the left of the reply button to say “Thanks” for helping!

  • I receive the error "The Selected Color Format is not supported" when I try to scan from my HP Office Jet Pro 8610.

    I receive the error "The Selected Color Format is not supported" when I try to scan from my HP Office Jet Pro 8610 using Adobe Acrobat Pro 11. I recently purchased the printer. I believe I ame using all of the defaults. How can I correct the problem?

    Hi,
    Both printer and computer seem to be on same network.
    Please download and run the following utility to troubleshoot on the issue.
    http://h10025.www1.hp.com/ewfrf/wc/document?docname=c03275041&cc=us&dlc=en&jumpid=reg_r1002_usen_c-0...
    Also download and install the firmware update from the link below.
    http://h10025.www1.hp.com/ewfrf/wc/softwareDownloadIndex?softwareitem=mp-89897-4&cc=us&dlc=en&lc=en&...
    Although I am an HP employee, I am speaking for myself and not for HP.
    --Say "Thanks" by clicking the Kudos Star in the post that helped you.
    --Please mark the post that solves your problem as "Accepted Solution"

  • Forcing RGB24 color format instead of YUV12

    Hi,
    I have problems with the colors when capturing from an Avermedia card (Conexant chipset). I have made several test and I am able to reprocude the same behaviour when usen VLC capturing in YUV12 color format. When I use RGB24 in VLC the colors are rigth.
    It seems to me that FMLE is capturing in YUV12 (also from what I have read in the forums), but in the FAQs says that it supports RGB24 capture cards. Is there any way of force FMLE to use RGB24?
    Best regards
    Sergio

    plz see
    R12: Request Logs Contain the Message "REP-0004: Warning: Unable to open user preference file" [ID 1120529.1]
    Concurrent Processing - Concurrent Reports Failing With Errors REP-0004,REP-0082 and REP-0104 [ID 844976.1]
    R12: Executing a Report fails with REP-0004: Warning: Unable to open user preference file. [ID 1303903.1]
    also
    - xml output is correct?
    - what type of execution method for cp?
    - when you run cp the template picked up for cp?

  • How to save jTextPane colored format save to html file?

    ok, I've been able to implement my stuffs using such example:
    http://www.java2s.com/Code/Java/Swing-JFC/JTextPaneStylesExample2.htm
    so now that my jTextPane has colored format. How do I allow user to save this to a file? Not a plain text file but a formated file such as html or doc?

    Use HTMLEditorKit's write() method and pass your document in the method.
    Regards,
    Stas

  • SSRS 2012 background color format by expression issue when exporting to Excel.

    We are using SSRS 2012. We have a report that conditionally formats a background color for some cells. The report renders properly in a browser and in Excel 2003 format. In Excel format all cells after the first one that meets the condition are highlighted,
    even if only one cell should.
    The sample expression that triggers this condition looks like this:
    =IIF(Fields!VIOL_NOTE.Value="Internal","Green","No Color")
    All cells after the first one that meets the condition Fields!VIOL_NOTE.Value="Internal" have a green background.
    Excel 2003 (proper) results:
    Excel (improper) results:
    Zenon

    Hi Zenon,
    Based on your description, I try to reproduce the issue in my test environment, however it is work well. After export the report to Excel and Excel 2003, I can get exact same result when open the Excel file in Excel 2010.
    Did you open the repot in Excel 2003 or Excel 2007-2010? Please post more deatils, so we can help to work out this issue.
    Regards,
    Fanny Liu
    If you have any feedback on our support, please click
    here.
    Fanny Liu
    TechNet Community Support

  • Conditional color formating in SSRS 2005

    Hi
    I have a report with customers bill amount and bill date. The customers have to pay within a grace period of 21 days after bill date
    I want to conditionally format the bill_date column so that when the number of days after the 21 days grace period is within 7 days then no color,30 days then blue, 61-90 days then Red
    Thanks a lot
    Please very urgent
    CRM Manager

    Hi!
    I have almost the same doubt.
    Have a date time field, what i need is to change the BackgroundColor if the date
    exceeds 6 months or another background if exceeds 1 year.
    Obviously i have to compare the date shown on my report with the
    current date.
    I know that i have to use an expression in the BackgroundColor property of textbox.
    Thanks !!!
    Please need help!!

  • Condotional color formatting

    I am trying to conditionaly format any alpha data field in a table that contains the text [Release] and anything that follows, the formula I am using is,
    if ({INCIDENT.CALLBACK_RMK}) >= '[Release]'
    then crRed
    The problem I am having is that the formula colors all alpha data in that field regardless if it contains [Release]. I have also tried the comparisons =, and > alone,
    I have also tried double quotes around [Release]. Any assistance will be greatly appreciated!
    sorry for all the code tags the forum is changing my text with the square brackets.
    Edited by: Louis Sindoni on Jul 10, 2008 3:13 PM
    Edited by: Louis Sindoni on Jul 10, 2008 3:15 PM

    Hello Louis,
    If I understand your situation correctly you have a string field that may contain the text "release". You want the release to be replaced with [release] and any subsequent text to be coloured red.
    The square brackets around the release is easy enough, just use the replace function.
    stringvar release:=replace({alpha field}, "release","[release]*")
    This will replace "release" with "[release]*" in the alpha field. The asteriks is to later split the string out.
    Changing the font color for the rest of the string after release is a little more challenging.The best way to conditionally format part of a string field is to use HTML.
    In the previous formula I assigned the string with the [release] to a variable so that it can be used here.
    Here we can split out the field into the first half upto the text [release] and the remaining into an array.
    stringvar release;
    stringvar array chunk:= Split(release,"*");
    stringvar result;
    result:= if ubound(chunk) > 1 then chunk[1] + "<font color=#FF0000>" + chunk[2] + "<font>" else release

  • Color format upon condition in RTF

    Hi
    will anyone help me in this issue i've a column i want when it be a negative value to display its font in red . how can i apply that in rtf template ???

    See this related thread - BI Publisher conditional formatting
    Srini

  • Color Format in calssical Report

    hi experts,
    I want in tne output of the report suppose first record(whole row, not only the characters) will b displayed in one particular color second row in some other color and like wise alternate roes have same color in classical report.
    Ravi

    hi,
    You can use following code.
    write:/ 'COLOUR' cOLOR 3 , 'full' cOLOR 3.-1st row
      write:/ 'Bird' cOLOR 4 , 'fly' cOLOR 4.-2nd row
    Hope this helps.
    Thanks.
    rashmi

  • Code syntax coloring/format toggle?

    OK...
    I am a super newb to Flash Builder, but I own 4.7.
    I have a MXML file that I found that I'm redoing to suit my needs.  I have the original open next to my version in case I screw something up I have referance.
    Wilst switching between them I made a "happy mistake".  Somehow I hit CTRL something something, and it reformatted my code with color syntax and some organization.
    See the difference?  I like the new coloring!
    I don't know what I did and i spent 3 hours f'n with preferances and settings all over the place and I cant recreate this!  What did I do and how do I do it again?
    Please please help!

    my syntax coloring went haywire and made everything pink. how do I fix this?
    If your syntax coloring is incorrect in DW, then usually it's because your syntax is incorrect. That's the purpose of syntax coloring. Start where the coloring is incorrect and go backwards until it is correct. The syntax error should be in that area.
    With that said, there are a few cases where DW does not recognize the syntax. If the syntax is correct, post a link to your page so that we can see it.
    HTH,
    Randy

  • Goto field and listbox color formats

    i've got two questions
    1. i've scripted a functional listbox (field2) that hides or shows fields depending on options selected ('yes' opens field2a, 'no' hides field2a) but depending the option chosen i want to 'go to' an appropriate field. example: 'yes' automatically goes to field2a, 'no' proceeds to field3
    as it is the 'yes' jumps to field3 and 'no' goes back to the top of the page. is there a command/script i can enter at the end of the 'if' and 'or' statement that will place the cursor in a designated field?
    2. the list box only shows as white text on a blue background. is there a way to make it show like a regular text box (black text on a white background)?
    any help is greatly appreciated!!
    ..joseph g

    You are sure you are getting only "No" and "Yes" from your list box?
    $host.messageBox(Concat("Event value = ", event.vlaue), "Verify Event Value", 3, 1);
    if (event.value=="No") {
    this.getField("5S1").hidden = true;
    xfa.host.setFocus("8");
    }else {
    if (event.value=="Yes") {
    this.getField("5S1").hidden = false;
    xfa.host.setFocus("5S1") };
    Are your 2 fields are not in the same section, you will need to provide the full reference.

Maybe you are looking for

  • TS2771 Ipod Touch 4th Gen Camera doest function despite using troubleshooting steps?

    I have tried using the troubleshooting steps outlined on this site but the camera fails to open, or switch between the front & rear cameras?  Can tis be repaired, if so what is the estimated cost?  My son's Ipod has the latest updates.

  • SLD doesnt open

    When i click SLD link nothing a page opens but nothing is displayed in it. I tried disabling Passive FTP under the internet options for IE, also deleted all the cookies, But still it doesnt display anything in the SLD page. Note: RWB works fine

  • MSi GT683 Resolution

    I have MSi gt683, i can't find 1600x900 in display resolution, can you guy's help me. 

  • [SOLVED] Fluxbox keys magic

    What I'd like to do seems a little complicated. I've got a laptop here and no USB mouse, and for some games (Most notably Minecraft), I'd like to bind a letter to the right mouse button because using the button on this cheap trackpad is awkward. It s

  • DVDRW Drive

    I recently parsed my list of installed programs, and I uninstalled Corel DVD MovieFactory 7 and now my DVD drive doesn't show up in My Computer and Windows tells me in Device Manger that: "Windows cannot start this hardware device because its configu