SSRS Reporting : Fill Cell Color according to the Location of the Cell in the Matrix

Hello,
I am trying to achieve below result in the SSRS but facing issues with Cell color Fill Expression when Detail value is NULL.
If you look at the image, it should show exact same colors of the cell irrespective of the values.
But in my case it is not showing color for NULL value cells.
Below is the expression which I have put in the Fill Expression window.
SWITCH(
Fields!Columns.Value = "Col1" And Fields!Rows.Value = "Row1","Yellow",
Fields!Columns.Value = "Col1" And Fields!Rows.Value = "Row2","Green",
Fields!Columns.Value = "Col1" And Fields!Rows.Value = "Row3","Green",
Fields!Columns.Value = "Col1" And Fields!Rows.Value = "Row4","Green",
Fields!Columns.Value = "Col2" And Fields!Rows.Value = "Row1","Red",
Fields!Columns.Value = "Col2" And Fields!Rows.Value = "Row2","Yellow",
Fields!Columns.Value = "Col2" And Fields!Rows.Value = "Row3","Yellow",
Fields!Columns.Value = "Col2" And Fields!Rows.Value = "Row4","Green",
Fields!Columns.Value = "Col3" And Fields!Rows.Value = "Row1","Red",
Fields!Columns.Value = "Col3" And Fields!Rows.Value = "Row2","Red",
Fields!Columns.Value = "Col3" And Fields!Rows.Value = "Row3","Yellow",
Fields!Columns.Value = "Col3" And Fields!Rows.Value = "Row4","Green"
Please suggest me to get the colors for the NULL value cells.
I tried with IsNothing() but then it is doing the same color of all NULL cells. I want them exactly same in the figure.
Thank you,
Mittal.

Hi Mittal,
Based on your dataset table, the matrix should displays as below. Are you manually insert Row1 row and Col3 column in the matrix?
If that is true, the Fill cell color should be displayed as the picture above. Because there are no values for Rows=Row1 and Columns= Col1, Rows=Row1 and Columns= Col2… the expression for those cells has no effect. To achieve your requirement, we can manually
insert those values in the dataset query like below:
SELECT Columns, Rows, Value FROM table
UNION all
select 'Col1' AS Columns, 'Row1' AS Rows, NULL AS Value
UNION all
select 'Col1' AS Columns, 'Row3' AS Rows, NULL AS Value
UNION all
select 'Col2' AS Columns, 'Row1' AS Rows, NULL AS Value
UNION all
select 'Col2' AS Columns, 'Row4' AS Rows, NULL AS Value
UNION all
select 'Col3' AS Columns, 'Row1' AS Rows, NULL AS Value
UNION all
select 'Col3' AS Columns, 'Row2' AS Rows, NULL AS Value
UNION all
select 'Col3' AS Columns, 'Row3' AS Rows, NULL AS Value
UNION all
select 'Col3' AS Columns, 'Row4' AS Rows, NULL AS Value
Then directly add those three field with the fill cell color expression to matrix, the matrix displays:
If there are any other questions, please feel free to ask.
Thanks,
Katherine Xiong
Katherine Xiong
TechNet Community Support

Similar Messages

  • How can I move columns in Numbers without distorting the formula in other cells?  In Excel I can cut and paste entire columns and the formula in other cells adjusts accordingly.  When I do it in Numbers, the formula messes up.  How can I do this?

    How can I move columns in Numbers without distorting the formula in other cells?  In Excel I can cut and paste entire columns and the formula in other cells adjusts accordingly.  When I do it in Numbers, the formula messes up.  How can I do this?
    For example: I have formulas in columns D and F that relate to columns C to CU
    If I want to move one column from one position to another (say S to T), the formula loses the colums that was moved, i.e. it doesn't recognize it has moved, rather sees it as deleted...  How can I do this without distorting the formula?

    Thanks for the feedback.
    If I often urge askers to look at the available resources, it's because  a large range of questions asked in the forums are already answered in these documents.
    As they are PDFs, they are easy to search in.
    CAUTION
    Download them while they are available.
    Given what is delivered with iBooks Author, I'm afraid that we will not get such easy to use documents.
    Searching infos in the  iBooks Author documentation available on line is awfully cumbersome and a lot of embedded links are wrongly flagged this way. In the Help files they aren't links but underlined strings.
    It seems that the tool used to generate the web pages was wrongly configured.
    Yvan KOENIG (VALLAURIS, France) dimanche 22 janvier 2012
    iMac 21”5, i7, 2.8 GHz, 12 Gbytes, 1 Tbytes, mac OS X 10.6.8 and 10.7.2
    My Box account  is : http://www.box.com/s/00qnssoyeq2xvc22ra4k
    My iDisk is : http://public.me.com/koenigyvan

  • Will apple next update to help fix the location following data problems will the ipod touch 2g be included ?

    will apple next update to help fix the location following data problems will the ipod touch 2g be included ?

    Chances are the 2g itouch will not be included in the update. Also no one yet knows if it will be fixed in the next firmware but apple has said they know of this bug.

  • My location service is not working from the day one the response is that (cannot able to determine the location) .What can i need to do to see my location in maps and other application even the location services is enabled in the settings?

    From the day one the response is that (cannot able to determine the location) while using ios5.1 .What can i need to do to see my location in maps and other application even the location services is enabled in the settings?.Which means that is there is any problem in my ipad ? currently running on IOS 6.

    Your location is determined from a location database which contains the MAC addresses of routers and their physical location. A MAC address is a unique number which is built-in to all network devices when manufactured. The database is built and updated by actually driving around and mapping router locations.
    Since you just moved the location of your router has not been updated in the database and when you use Maps you will see your old location.
    If you go outside your house you can be correctly located because your iPod sees other routers which are in the location database. Note that you do not need to be connected to a router for your iPod to see it and obtain its MAC address.

  • The location bar has disappeared from the top of any tab that I open. How can I get it back?

    The location bar has disappeared from the top of any tab I open, so there is nowhere to type in a web address. Could I have accidentally made this happen? How do I get it back?

    Just to be clear, it's not below the tab bar either? (That's the new style in Firefox 4 and 5.)
    To hide or show toolbars, you can use the old View menu.
    If you have the orange Firefox button, tap the Alt key to temporarily display the classic menu bar.
    View menu > Toolbars > ''check'' Navigation Toolbar
    If you are viewing the navigation toolbar but it's incomplete or corrupted, you can reset your toolbars.
    View menu > Toolbars > Customize
    In the large dialog with the icons, toward the bottom, click Restore Default Set.
    Does any of that help?

  • Clicking on the downward arrow at the right end of the location bar no longer displays the drop-down list of sites visited, bookmarks and addresses typed in location bar

    Since I upgraded to Firefox version 3.6.10, clicking on the downward arrow at the right end of the location bar no longer displays the drop-down list of sites visited, bookmarks and addresses typed in location bar. My Tools > Options > privacy setting is to save history, and if I start typing a previously accessed website's address in the location bar, then the full address appears as a drop-down item. But not when I just click at the right end of the bar.

    You can try "Reset all user preferences to Firefox defaults" on the [[Safe mode]] start window.
    Start Firefox in [[Safe Mode]] to check if one of your add-ons is causing your problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    See [[Troubleshooting extensions and themes]] and [[Troubleshooting plugins]]

  • The location should be active for the assignment error

    Hi All-
    I am trying to apply for the job Application: Review Account IRC1548607 using Oracle's online recruiting tool but getting the following error when hit next on the very first screen:
    "The location should be active for the assignment error"
    Anyone here help me resolve the issue?
    Cheers,
    Irfan Jaffery

    Hi Irfan Jaffery,
    Kindly provide the steps which has been performed while applying for the job and provide the exact error message and Error number.
    Thanks and Regards,
    Joshna.

  • HT4061 if the location service is off but the phone is online, may i able to locate where it is by the serial number or my apple ID?

    if the location service is off but the phone is online, may i able to locate where it is by the serial number or my apple ID?
    any one can show me a way, please help

    No. The only way to locate it is with Find my iPhone. If location services is off, you can't locate it.

  • I have Find my Phone enabled. Could a thief switch off location services to stop it being tracked? If so, an update must place the location services and icloud into the restrictions menu to be protected by the pin to stop it being turned off????

    I have Find my Phone enabled on iphone and ipod. Could a possible thief switch off location services to stop it being tracked? If so, an update must place the location services and icloud into the restrictions menu to be protected by the pin to stop it being turned off, surely????

    Now find a way of stopping the thief removing the SIM, or simply turning off the phone or restoring it. 
    The "Find" feature is useful if you mislay the phone, but not usually of value if the phone is stolen.

  • How to find an SSRS report subscription was executed 3 days back and sent an Email to the requested person or group?

    Hi All,
    I got complain that one of my reports which was subscribed from SSRS Report Manager could not delivered to targeted people 3 days back. 
    I want to to check that Email was sent or not So I wrote below query but I think table  will be over written on each execution of subscription and cannot see the history. I can see only the latest data.
    SELECT A.NAME,B.Description,B.LastStatus,B.LastRunTime 
    FROM [dbo].[Catalog] A
    INNER JOIN [dbo].[Subscriptions] B ON A.ItemID=B.Report_OID
    WHERE TYPE=2 
    AND NAME='REPORT_NAME'
    AND B.LastStatus LIKE '%EMAIL ID%'
    AND B.LastRunTime>Getdate()-1
    ORDER BY B.LastRunTime
    There is another query which says that report was rendered by SUBSCRIPTION and have no track that Email was sent or not.
    --Query to find out how a report was execute 
    SELECT * FROM EXECUTIONLOG3 
    WHERE REQUESTTYPE='SUBSCRIPTION'
    AND ITEMPATH LIKE '%REPORT NAME'
    ORDER BY TIMESTART DESC
    There is any way to track this?
    https://msdn.microsoft.com/en-us/library/ms159110.aspx
    http://blogs.msdn.com/b/deanka/archive/2009/01/13/diagnosing-and-troubleshooting-subscriptions.aspx
    Thanks Shiven:) If Answer is Helpful, Please Vote

    Hi S Kumar Dubey,
    According to your description, you want to find the failed subscription report and resent the report to users again.
    In this scenario, you can run the query below to find the failed subscription.
    use ReportServer
    go
    SELECT C.Name, S.LastRunTime, S.LastStatus, S.Description
    FROM Subscriptions AS S
    LEFT OUTER JOIN [Catalog] AS C
    ON C.ItemID = S.Report_OID
    WHERE LEFT (S.LastStatus, 12) != 'Mail sent to'
    AND LEFT (S.LastStatus, 12) != 'New Subscrip'
    Then you can execute the code with jobstep command below to find the corresponding SQL Agent Jobs for failed subscription, then execute the job to send the email again.
    select 'exec sp_start_job @job_name = ''' + cast(j.name as varchar(40)) + ''''
    from msdb.dbo.sysjobs j
    join msdb.dbo.sysjobsteps js on js.job_id = j.job_id
    join [ReportServer].[dbo].[Subscriptions] s on js.command like '%' + cast(s.subscriptionid as varchar(40)) + '%'
    where s.LastStatus like 'Failure sending mail%';
    Reference:
    SSRS Failed Subscription Notifications
    Re-running SSRS subscription jobs that have failed
    If you have any question, please feel free to ask.
    Best regards,
    Qiuyun Yu
    Qiuyun Yu
    TechNet Community Support

  • Change cell color if number is different from previous cell

    Hello all and thank you in advance for any help that is provided.
    I want to have the color of text in one cell change if the number entered into that cell is higher than the number entered in the previous cell.
    Example: If cell A=18 and cell B=18 then the font color in both cells is the same.
    If cell A=18 and cell B=20 then the color of the font in cell B should change to another color.
    I have done my best to look through the posted questions to no avail so I apologize if this has already been answered.
    AJ

    Inspector > Format (42)
    Select B2 > Conditional format > Greater than > A2 > Edit > Text > Red, Green whatever. Done.
    As usual the format in B2 can be dragged down by the little o bottom right to B3, B4 etc.
    S.

  • HT5467 How to change the location service set up when the icon is not inactive?

    I can not setting up the location services and change individual location service for each application since the icon are all in the dead icon and I cannot change anything. Is there anyway to make those icons in active?

    Here is what I was referring to - when in Control Center, I have the database locations. (sources, targets, OWF etc). Under a database location I selected the connector/location name under Connectors. When I select Deploy Action to Drop the connector/location name will remain. However, if you were to check in the database or the Repository Browser (Locations Report) you will see that the db link is gone. At this point you can safely modify the Locations info in the Connection Explorer (in Design Center). On the other hand, if you want the location to be deleted all together then now you can delete it in the Connection Explorer panel. If you did the prior drop step then at this point all db link info should be gone from the database.

  • How to change the location of all fotos in the iPhoto library?

    my iPhoto 11 library is stored locally on my macbook.
    however, my fotos (the actualy bits) are stored externally on a NAS box.
    (or in other words: option "Importing: [ ] Copy items to the iPhoto Library" is not checked)
    recently i purchased a timecapsule and i now want to move all fotos from the NAS box to the timecapsule.
    i am looking for a way to batch-change the location of all fotos from let's say "/Volumes/MyNas/..." to "/Volumes/MyTimecapsule/...".
    can this be done? any ideas?
    thank you.
    ps: i know how to deal with xml and .db/.apdb files. so don't be gentle on me ;-)

    Not really unless you search the forums and find the older post describing how to hack the SQLite database to accomplish this
    Or use Aperture which can do this easily
    However if you are using your Time Capsule as a Time Machine bakcup volume it is not a good place to put your photos - if you do you have no backup of them which means that sooner of later you will lsoe them - and sooner or later TM will fill the volume and make it impossible to add photos
    LN

  • How do I use the location bar to automatically load the top google hit?

    I recently re-installed Firefox 3.6.12 and created a new profile because my old one was malfunctioning. Before, when I typed something in the location bar (say "nyt") it would automatically load the first Google hit (so I didn't have to type "nytimes.com"). Now, it simply performs a Google search without loading the first page hit. I loved being able to save time this way. How do I restore this feature?

    I had this problem in FF4 and found the answer here: http://support.mozilla.com/en-US/questions/756711#answer-
    To quote TonyE:
    Current release versions of Firefox by default use the Google "browse by name" search option for the location bar, but Firefox 4 beta 6 no longer uses this. You can restore it by changing a hidden preference. In Firefox 4 beta 6 it should have defaulted to a Google search rather than what you got.
    Type about:config into the location bar and press enter
    Accept the warning message that appears, you will be taken to a list of preferences
    In the filter box type keyword
    Double-click on the preference keyword.URL and change it to the one shown below
    http://www.google.com/search?ie=UTF-8&oe=UTF-8&sourceid=navclient&gfns=1&q=

  • How to get the location of a jarfile in the java 1.6 cache

    In 1.5 i am using getResource() to get the location of the jarfile i need, but in 1.6 this does not work anymore. I found a webpage with a workaround for this, but unfortunately i did not bookmark it and i can't find it again. Does anybody know how to get a file url instead of an http url to the jar file?
    I need the location to this jarfile. There is no other workaround and please DO NOT respond and tell me, that i don't need the location in the cache! I read all threads on the java forums to this issue and i didn't find a good answer.

    java.io.File class can be used.
    File f = new File("filename");
    S.O.P(f.canRead());
    S.O.P(f.canWrite());You can set the attribute using Runtime class.
    Runtime r = Runtime.getRuntime();
    Process p =r.exec("attrib -r file");If you are working with unix,
    r.exec("chmod -permissionoptions file");

Maybe you are looking for

  • Activation of the activity fails u0096 no source files in the active workspace

    Dear All, I’m working on a NWDI installation since last month. The NWDI server (NW2004s) has been installed and configured with the following parameters: Some Details: -     Java Stack on SPS 12 -     No complete Developer Workplace, we only use the

  • Vendor: ABC Analysis

    Hi, How can I perform the ABC Analysis on Vendors to check the spends. The Vendor Master does have indicator in Purchasing view. The Standard TCode MC40 / MC46 does not help. Thanks

  • Spacing balls on a circle?

    Hi I need to draw a concentric circles with balls (like molecules), evenly spaced from each other. How would I do that easily and quickly? Thanx, Rogier

  • Layout form elements

    I just started on Flex a couple days ago.  My background is .NET.  In .NET, laying out components for a windows app is really simple.  But I'm not having much luck here.  I'm supposed to replicate a paper form for people to fill out, and the fields n

  • Can't get rid of white screen

    Everytime I use my ipod it has a white screen on it, have tried the shut down and the reboot but nothing happens, it is fully charged