How to fill column value of a matrix with specific color when there is no value in that specific cell?

Hi All,
I need to create a 5/5  matrix in SSRS report. The data will be :
Col_Side   Col_Header   Col_data
1                  1                1
1                  1                 1
1                  2                1
1                  5                1
1                  5                1
1                  5                1
2                  3                1
2                  5                1
3                  1                2
3                  1                2
3                  1                2
4                   2               1
4                   4               1
5                   1               1
5                   1               1
5                   5               1
So, the matrix column will be Col_Header and matrix row will be Col_Side and count(Col_data) will be on the data.
Finally, it will create a 5 by 5 matrix with Count(Col_data) as its data for each combinations. If there is no combination (for ex: in the above data we do not have no combination of (1,3) , (1,4) , (2,1) etc..) then the matrix will be filling that corresponding
cell with zero.
Here I need to fill the cells with some colors based on some criteria.
I need to fill (5,3), (5,4), (5,5) combination with "Red" color.  Like this , I need to give different colors in each of the cells. Here, (5,5) combination will be having 1 in its cell.  (5,4) and (5,3) will be having zero in its corresponding
cells. I 'm trying to fill all the 3 cells with "Red" color. But, I am able to fill only (5,5) with "Red" color. Since the other 2 cells (5,3) and (5,4), has zero in their cells, it will not fill the cells with "Red" color. 
How can I fill those two cells (5,3) and (5,4) with red color?
I know this is very vague. I have no option to give the picture here..
Please suggest

Hi Julie,
According to your description, there is a 5/5 matrix with three fields: Col_Side, Col_Header, Col_data. You drag Col_Side field to Rows, Col_Header to Columns and Col_data to Data, then filling blank cells with zero using expression. Now you want to fill 
(5,3), (5,4), (5,5) cells with red color using expression, but it has no effect on cells (5,3) and (5,4).
According to my test, the expression has on effect on cells (5,3) and (5,4) since there is no corresponding data and the cells are blank. As a workaround, we can insert data for cells (5,3) and (5,4) in dataset, then use expression by following steps:
In the dataset, insert two sets of data (5,3,0), (5,4,0).
Right-click the cell of data, click Text Box Properties.
Click Fill in left pane, click (fx) button, then type the expression like below, then click OK.
=iif(Fields!Col_Side.Value=5 and Fields!Col_Header.Value >=3 ,"red","white" )
The following screenshot is for your reference:
If you have any more questions, please feel free to ask.
Thanks,
Wendy Fu

Similar Messages

  • How to find Latch and what actions need to be taken when there is a latch

    Hi
    Can you please tell me how to find Latch and what actions need to be taken when there is a latch?
    Thanks
    Regards,
    RJ.

    1. What is a latch?
    Latches are low level serialization mechanisms used to protect shared
    data structures in the SGA. The implementation of latches is operating
    system dependent, particularly in regard to whether a process will wait
    for a latch and for how long.
    A latch is a type of a lock that can be very quickly acquired and freed.
    Latches are typically used to prevent more than one process from
    executing the same piece of code at a given time. Associated with each
    latch is a cleanup procedure that will be called if a process dies while
    holding the latch. Latches have an associated level that is used to
    prevent deadlocks. Once a process acquires a latch at a certain level it
    cannot subsequently acquire a latch at a level that is equal to or less
    than that level (unless it acquires it nowait).
    2. Latches vs Enqueues
    Enqueues are another type of locking mechanism used in Oracle.
    An enqueue is a more sophisticated mechanism which permits several concurrent
    processes to have varying degree of sharing of "known" resources. Any object
    which can be concurrently used, can be protected with enqueues. A good example
    is of locks on tables. We allow varying levels of sharing on tables e.g.
    two processes can lock a table in share mode or in share update mode etc.
    One difference is that the enqueue is obtained using an OS specific
    locking mechanism. An enqueue allows the user to store a value in the lock,
    i.e the mode in which we are requesting it. The OS lock manager keeps track
    of the resources locked. If a process cannot be granted the lock because it
    is incompatible with the mode requested and the lock is requested with wait,
    the OS puts the requesting process on a wait queue which is serviced in FIFO.
    Another difference between latches and enqueues is that
    in latches there is no ordered queue of waiters like in enqueues. Latch
    waiters may either use timers to wakeup and retry or spin (only in
    multiprocessors). Since all waiters are concurrently retrying (depending on
    the scheduler), anyone might get the latch and conceivably the first one to
    try might be the last one to get.
    3. When do we need to obtain a latch?
    A process acquires a latch when working with a structure in the SGA
    (System Global Area). It continues to hold the latch for the period
    of time it works with the structure. The latch is dropped when the
    process is finished with the structure. Each latch protects a different
    set of data, identified by the name of the latch.
    Oracle uses atomic instructions like "test and set" for operating on latches.
    Processes waiting to execute a part of code for which a latch has
    already been obtained by some other process will wait until the
    latch is released. Examples are redo allocation latches, copy
    latches, archive control latch etc. The basic idea is to block concurrent
    access to shared data structures. Since the instructions to
    set and free latches are atomic, the OS guarantees that only one process gets
    it. Since it is only one instruction, it is quite fast. Latches are held
    for short periods of time and provide a mechanism for cleanup in case
    a holder dies abnormally while holding it. This cleaning is done using
    the services of PMON.
    4. Latches request modes?
    Latches request can be made in two modes: "willing-to-wait" or "no wait". Normally,
    latches will be requested in "willing-to-wait" mode. A request in "willing-to-wait" mode
    will loop, wait, and request again until the latch is obtained. In "no wait" mode the process
    request the latch. If one is not available, instead of waiting, another one is requested. Only
    when all fail does the server process have to wait.
    Examples of "willing-to-wait" latches are: shared pool and library cache latches
    A example of "no wait" latches is the redo copy latch.
    5. What causes latch contention?
    If a required latch is busy, the process requesting it spins, tries again
    and if still not available, spins again. The loop is repeated up to a maximum
    number of times determined by the initialization parameter SPINCOUNT.
    If after this entire loop, the latch is still not available, the process must yield
    the CPU and go to sleep. Initially is sleeps for one centisecond. This time is
    doubled in every subsequent sleep.
    This causes a slowdown to occur and results in additional CPU usage,
    until a latch is available. The CPU usage is a consequence of the
    "spinning" of the process. "Spinning" means that the process continues to
    look for the availability of the latch after certain intervals of time,
    during which it sleeps.
    6. How to identify contention for internal latches?
    Relevant data dictionary views to query
    V$LATCH
    V$LATCHHOLDER
    V$LATCHNAME
    Each row in the V$LATCH table contains statistics for a different type
    of latch. The columns of the table reflect activity for different types
    of latch requests. The distinction between these types of requests is
    whether the requesting process continues to request a latch if it
    is unavailable:
    willing-to-wait If the latch requested with a willing-to-wait
    request is not available, the requesting process
    waits a short time and requests the latch again.
    The process continues waiting and requesting until
    the latch is available.
    no wait If the latch requested with an immediate request is
    not available, the requesting process does not
    wait, but continues processing.
    V$LATCHNAME key information:
    GETS Number of successful willing-to-wait requests for
    a latch.
    MISSES Number of times an initial willing-to-wait request
    was unsuccessful.
    SLEEPS Number of times a process waited a requested a latch
    after an initial wiling-to-wait request.
    IMMEDIATE_GETS Number of successful immediate requests for each latch.
    IMMEDIATE_MISSES Number of unsuccessful immediate requests for each latch.
    Calculating latch hit ratio
    To get the Hit ratio for latches apply the following formula:
    "willing-to-wait" Hit Ratio=(GETS-MISSES)/GETS
    "no wait" Hit Ratio=(IMMEDIATE_GETS-IMMEDIATE_MISSES)/IMMEDIATE_GETS
    This number should be close to 1. If not, tune according to the latch name
    7. Useful SQL scripts to get latch information
    ** Display System-wide latch statistics.
    column name format A32 truncate heading "LATCH NAME"
    column pid heading "HOLDER PID"
    select c.name,a.addr,a.gets,a.misses,a.sleeps,
    a.immediate_gets,a.immediate_misses,b.pid
    from v$latch a, v$latchholder b, v$latchname c
    where a.addr = b.laddr(+)
    and a.latch# = c.latch#
    order by a.latch#;
    ** Given a latch address, find out the latch name.
    column name format a64 heading 'Name'
    select a.name from v$latchname a, v$latch b
    where b.addr = '&addr'
    and b.latch#=a.latch#;
    ** Display latch statistics by latch name.
    column name format a32 heading 'LATCH NAME'
    column pid heading 'HOLDER PID'
    select c.name,a.addr,a.gets,a.misses,a.sleeps,
    a.immediate_gets,a.immediate_misses,b.pid
    from v$latch a, v$latchholder b, v$latchname c
    where a.addr = b.laddr(+) and a.latch# = c.latch#
    and c.name like '&latch_name%' order by a.latch#;
    8. List of all the latches
    Oracle versions might differ in the latch# assigned to the existing latches.
    The following query will help you to identify all latches and the number assigned.
    column name format a40 heading 'LATCH NAME'
    select latch#, name from v$latchname;

  • I have an Retina display MacBook Pro with HMDI out port. I also have an HDMI to Component cable with Audio Plugs. How can I get HDMI out to work with this cable when plugged into the Component and Audio ports on my TV?

    I have an Retina display MacBook Pro with HMDI out port. I also have an HDMI to Component cable with Audio Plugs. How can I get HDMI out to work with this cable when plugged into the MacBook Pro and connected to the TVs Component and Audio in ports.

    Will not work.  To my knowledge, dual converting like that isn't supported.  The Mac must detect the connected video output device and that sort of info cannot be done across an analog component uni-directional connection.

  • How can i combine a b/w photo with a color photo? [was: Photoshop 5.5]

    How can i combine a b/w photo with a color photo?

    Edit the color document. Then Copy, or Place or Paste in the Grayscale image and mask the BW to create a composit.

  • Hello! I have a huge question about how can I get connected my iphone 4 with my car Is there any opption on find my car application? I have a Volvo xc60 and I want to be connected all the time with my iphone. Can I do that?

    Hello! I have a huge question about how can I get connected my iphone 4 with my car Is there any opption on find my car application? I have a Volvo xc60 and I want to be connected all the time with my iphone. Can I do that?

    Hello. I can say that you have a quite strange „huge question”… It’s non-sense to stay connected with your car which is hundreds miles away. Unless…
    I have a theory. You don’t want to controll your car, you want to controll somebody who is driving the car. Volvo XC 60 is a nice family car, usually used by married men between age of 35-45, probably with small children, so it’s very unlikely that you want to controll your teanage kid, mainly because probably even if you would give him/her to drive the car in the neighborhoud, I don’t think that he/she would be „several hundred miles away”…  If your child is not young teneage anymore, and he/she has his/her own life, but you want to control him/her, that is sick… So I am convinced that you want to controll your husband who probably travelling often! Am I wright?
    Isnt’t nice at all! Would you like if you would be monitorized in such way? I bet you don’t!
    Anyway, iPhone is smart, you can use for many things, but come on, you really were thinking that there is such kind of application???
    What could you do it's to put in the car a GPS survelling system, however I don't think that you could do it without your husband knowledge, otherwise he won't be able to start the engine...

  • How to fill a selection in Layer A with Layer B

    Hi,
    I've been using Photoshop on a hobby basis for 8 years and I have never figured out to accomplish what seems like this insanely simple task. How do I fill a selection in layer A with the contents of layer B?
    To illustrate, right now I am trying to take a visor on a helmet and give it a broken glass effect. The image of the broken glass is suitable to be placed directly into the visor area of the helmet. I select the visor of the helmet with quick selection tool, and all I really need to do is use this selection to "cut out" an area of the same size and shape from my broken glass image and place it on top. However, I have no idea how to do this.
    What would be the best practice in this situation?
    Thanks,
    bodazx

    One way to do this is to use the place command under the file menu to insert your broken glass image into your helmet image.  Then you can  position and size the broken glass image where you want it.  Aftet than you can make your selection and use it to create a layer mask for the broken glass image.

  • How to suppress 'Do u want to save the changes?'  When there are no changes

    Hi All,
    I have developed one form,which contains 3 blocks in that 2 are database blocks and one is control block.It's working fine.When I close the form without doing any change also it is showing an alert as 'Do you want to save the changes you have made?'. How can I suppress that alert when I haven't made any change to the form.
    I am displaying one filed in the database block as 'null' until check box is checked.For that I have written code in when-new-block-instance trigger of that block.
    There I wrote SET_RECORD_PROPERTY (GET_BLOCK_PROPERTY (:SYSTEM.TRIGGER_BLOCK, CURRENT_RECORD), :SYSTEM.TRIGGER_BLOCK, STATUS, QUERY_STATUS); also to change the block status as query.
    But it is not working, still I am getting the alert,How can I solve this could anyone please give me a suggestion..
    Thanks in advance.

    So, this functionality can be done through CHECK BOX itself. Why you are making null by WHEN-NEW-BLOCK-INSTANCE. You can just set the update and insert property for that fields and rest things you can control from chexbox. And WHEN-BLOCK-INSTANCE-TRIGGER will fire once when you will access that block. If you want to set the same functionality for each record. Then you must use WHEN-NEW-RECORD-INSTANCE. for ex.
    Trigger = WHEN-NEW-RECORD-INSTANCE (BLOCK-LEVEL)
    Here i will assume that if check box is checked then he can update that fields.
    IF :CHECKBOX='Y' THEN
      SET_ITEM_PROPERTY('BLOCK_NAME.ITEM_NAME',INSERT_ALLOWED,PROPERTY_TRUE);
      SET_ITEM_PROPERTY('BLOCK_NAME.ITEM_NAME',UPDATEABLE,PROPERTY_TRUE);
    ELSE
      SET_ITEM_PROPERTY('BLOCK_NAME.ITEM_NAME',INSERT_ALLOWED,PROPERTY_FALSE);
      SET_ITEM_PROPERTY('BLOCK_NAME.ITEM_NAME',UPDATEABLE,PROPERTY_FALSE);
    END IF;In the above code no need for set value to NULL.
    And on CHECK BOX you can write like this...
    Trigger WHEN-CHECKBOX-CHANGED (ITEM-LEVEL)
    IF :CHECKBOX='Y' THEN
      SET_ITEM_PROPERTY('BLOCK_NAME.ITEM_NAME',INSERT_ALLOWED,PROPERTY_TRUE);
      SET_ITEM_PROPERTY('BLOCK_NAME.ITEM_NAME',UPDATEABLE,PROPERTY_TRUE);
    ELSE
      :FIELD_NAME:=NULL;  -- here if check box is unchecked then it will set value to NULL
      SET_ITEM_PROPERTY('BLOCK_NAME.ITEM_NAME',INSERT_ALLOWED,PROPERTY_FALSE);
      SET_ITEM_PROPERTY('BLOCK_NAME.ITEM_NAME',UPDATEABLE,PROPERTY_FALSE);
    END IF;-Ammad

  • How to Change Date-Type to Char-Type with Format?, When it.....

    I'd like to Change format Data from Date-Type Column to char-type
    especially, as 'YYYYMMDD' Format, But There are some Error Message.
    I already know, to_char(sysdate, 'yyyymmdd') from dual,
    But When it Applied my Table (has Date Type Column )....
    That SQL was Error...
    Table Description
    ===================
    GUBUN     NOT NULL     NUMBER(7)
    POLCD     NOT NULL     NUMBER(7)
    TITLE          VARCHAR2(200)
    VALUE          NUMBER(7)
    SIDATE          VARCHAR2(20)
    SQL
    ================================
    SELECT TO_CHAR(SIDATE,'YYYYMMDD') as V_SIDATE , -- <== Error
    TO_CHAR(SYSDATE,'YYYYMMDD') as V_TODAY -- <== Ok
    FROM T_POLL
    Error Msg
    ================================
    ORA-01722: invalid number
    .....I don't know Why... plz. help me, it's Urgent...-_-;
    ICQ : 40751557
    MSN : [email protected]
    Finally, sorry for my poor English...

    The reason for the error is you are applying a TO_CHAR function to a character datatype. SIDATE is a character. That field should be a date field. If for some reason, you need it to stay as a character field then you will need to change it to a date then change it back to a character.
    TO_CHAR(TO_DATE(SIDATE,'put format here'),'YYYYMMDD')

  • How to set images to your contacts to see their picture when there calling? Like their facebook picture.

    How to set images to your contacts to see thier picture when someone is calling? Like for instance facebook picture.(on the iPHONE 4s)

    You can manually add a photo to each contact on your iPhone - from an existing photo of the contact on your iPhone or capture a photo of the contact when together. Or add a photo for each contact in the address book app on your computer that is supported for syncing contacts with the iPhone followed by a sync.
    For FaceBook check this link, which I found with a Google search.
    http://www.iphonestuffs4u.com/how-to-sync-facebook-contacts-to-iphone/

  • How do you turn off cellular data on an iphone 5c when there is no "cellular" in settings?

    How do I turn off the cellar data on an iphone 5c when there is no "cellular" option in the settings?

    Usually when you open the 'Settings' app there is the otipn to press cellular, is this not the case? As this is where you turn off cellular data.

  • Permute matrix columns to find the matrix with biggest trace

    I am trying to make a Labview Vi that picks any 3x3 matrix and permutes the columns (not rows!) until it gets the ordenation that has a greatest trace (sum of diagonal elements). The program should also allow a sign change of the elements of one or more columns. If I am not wrong for a given 3x3 matrix and considering the column sign change there are 36 possible matrices, and the program should automatically show the one with greatest trace
    For example: 
     1   6    3                                             6   -1   -3
    -8  -2    4   should be converted to        -2    8   -4
     3   2   -7                                             2   -3    7
    I know it should be a quite simple program, but after spending several hours with L. V. 8.5  I end with a too complicated block diagram that does not work.
    Ideally the program should also show of the permutation/sign change that has given the greatest trace but this part I think I am capable to do by myself.
    Message Edited by obarriel on 12-28-2009 06:00 PM

    Sorry, I pasted the wrong permutation matrix diagram constant for some reason. As you can see, it has only two unique permutations instead of six. Silly! You can easily paste Darin's permutation matrix and it will work correctly.
    Here's a more general version that generates all permutations on the fly (LV 8.5). It does a 10x10 in under two seconds (3628800 permutations!).
    See if this works better for you.
    The permutation algorithm is from wikipedia:
    For every number k, with 0 = k < n!, the following algorithm generates a unique permutation of the initial sequence sj, j = 1, ..., n:  
    function permutation(k, s) {
         for j = 2 to length(s) {
            swap s[(k mod j) + 1] with s[j]; // note that our array is indexed starting at 1
            k := k / j;        // integer division cuts off the remainder
         return s;
    NOTE: Indexing in LabVIEW starts at 0, so the code is changed accordingly.
    For larger matrices you'll run out of steam very quickly because the permutations increase with N factorial. I am sure there would be a much more
    intelligent algorithm to solve all that in much less time.
    Message Edited by altenbach on 12-29-2009 09:31 AM
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    MaxTraceCA2.vi ‏27 KB
    MaxTraceCA2.png ‏61 KB

  • How to Create Excel File in Background processing with different colors

    HI All
    I am trying to create Excel file in background & send it to user through e-mail, this i could acheive using fucntion module SO_DOCUMENT_SEND_API1, but here my requirement is i want to put different colors to columns of excel & this should happen in Background processing,
    Initially i completed above requirement by using HTML type of document with attachment type 'ALI'  & formatted output using write statement & used colors, after that i took this o/p using save_list function module & then table compress...etc.
    but i don't know how to achieve same if we need o/p in excel as size of object of excel file is less than that of HTML
    I am thankfull to everybody who will help me.
    Regards
    Lokesh

    Lokesh,
    Iam also trying to populate my text file with colors as an attachment . If you know this please let me know.

  • How can I burn more than 1 movie to a DVD when there is room on the disc for it. Premiere wants to overwrite once 1 movie is burned to the disc

    How can I burn more than 1 movie onto a DVD? Once 1 movie is burned successfully to the disc, I try to burn another movie and Premiere wants to overwrite the first movie. One movie is 1.2 GB, second is 2.3; so there is room on a 4.7 GB DVD-RW.

    susang
    What you report is what it is.
    Each burn to of Timeline content to DVD-VIDEO format on DVD disc results in the disc containing one OpenDVD Folder and one VIDEO_TS Folder.
    Only one VIDEO_TS Folder can be put on a DVD-VIDEO disc even when Premiere Elements is not involved. I have seen that written about online, and I have
    never found a way to overcome what seems to be basic behavior description of DVD-VIDEO..
    Premiere Elements will allow you to write to a disc with content already on it, but only after you give the OK for erasing the disc content before going ahead
    with the burn to.
    If you have several movies, one possibility is to build a Timeline with the movies, use stop markers, and setup disc menus according so that the viewer
    can selectively watch the movies. More on that later if wanted.
    Any questions or need clarification, please ask.
    Thank you.
    ATR

  • How do you get rid of App Store app update notice when there are no apps to be updated?

    As you can see below, I have the notification saying 8 updates yet there are no apps to update.
    Anyone know how I can fix this??

    Try this for now:
    Spotlight: How to re-index folders or volumes
              http://support.apple.com/kb/ht2409
    Mac App Store: Cannot update App Store purchases or updates do not seem available
              http://support.apple.com/kb/TS4236

  • How do I get rid of a bubble with 3 dots when I am typing on imessage?

    I have realized when I type something on imessage other person can tell when I am typing by a bubble with 3 dots appers.
    I don't want other person to know that I am typing and I don't want a bubble w 3 dots to show up. How do I get rid of this?
    please helpppppp!

    You can't get rid of it.
    If you turn iMessage off and just use regular SMS it won't appear.

Maybe you are looking for