How to use highlight index parameter on ssrs - sql-server

I have a report on SSRS and I have just one parameter called SSCC
I want to highlighting for index SSCC
I mean if I used this SSCC number : 350110073200168575
I want to fill color must change yellow, just this number of SSCC
And sometimes my SSCC number will be multiple but I just want to see for one SSCC
I added screenshot.
You can see my report preview:
Could you help me please?

Have a look at: Adding Conditional Formatting (Reporting Services) on MS Docs.
Changing Text Color Based on an Expression
To make the contents of a text box render negative values in red for a field called Profit, open the Properties pane and use the following expression in the Color property:
=IIF(Fields!Profit.Value < 0, "Red", "Black")

You just need to add a condition to the background color of the textbox that will contain the record. Then compare the field to the parameter value, with your selected colors as the return value.
=IIF(Fields!SSCC.Value = #Parameters!SSCC.Value,"Yellow","[Your default color]")

Related

How to change color of A specified cell(s) when checkbox is checked In Google Sheets?

I need to change the color of certain cells, if next to them checkbox in TRUE.
I found this article, but it doesn’t say how to change the text (what value should be entered):
https://support.google.com/docs/answer/7684717?co=GENIE.Platform%3DDesktop&hl=en
In my case, I want these cells in green color
custom formula for conditional formatting:
=IF($C1=TRUE,1)
You are looking for Conditional Formatting. Specifically Example 2 under the Use advanced conditional formatting topic. I believe the checkbox will have a value of true when checked.

SSRS - Show a rectangle based on selected parameter

I have a quick question?
I have a report that contains a "TicketNo" parameter. This is a dropdown list and contains 2 types of values (example below)
'82736 - Change Request'
'78382 - Report Request'
How can I make a rectangle visible depending on which type of ticket was created? (Report request or change request)
So if a change request was selected, the rectangle showing change data would appear, and vice versa?
Appreciate any help as always!
There is a Rectangle object type in the Report Item Toolbox.
There you can set the border Style property to Solid an then add an Expression to its BorderColor property.
Write the expression as a conditional statement, setting it to Black or white depending on your condition, using an IIF statement.
Use the visibility property of the rectangle
Goto Rectangle Properties
Select visibility
Choose 'Show or hide based on an expression'
Input expression '=Parameters!TicketNo.Value=82736' assuming ticketNo is integer
Rectangle will be hidden if the condition is true.

How to display the Horizantal Access value from dataset field in rdlc report line chart

what property need to set the for the displaying this value in line chart in Rdlc report
Want to display right side capacity column value in line chart
It looks like you have specified interval and also the minimum and maximum limits so remove all those or set it to auto and it will come
Just try it
It's just configuration to show data in horizontal axis.
1) Goto rdlc-chart right on horizontal axis property click.
2) Goto Number tab.
3) Custom category -> click on custom formats (Fx).
4) Click on "fields" on category portion.
5) Click on databases field which one show as horizontal axis.

Using where clause in SSRS expression

I have a data set with multiple rows. The columns are name and plot; plot is a binary image file. If I want to display the plot whose name is secondPlot, for example, how would I do this? I can display just the first plot with =First(Fields!plot.Value, "DataSet1") but haven't had any luck with retrieving a plot with a certain name value.
I found if IIf function but am unsure on its usage or whether it's actually what I'm looking for anyway. =First(IIF(Fields!name.Value = "secondPlot", Fields.plot.Value, Nothing)) gives the error "The definition of the report '/MainReport' is invalid", for example.
For clarification, I'm typing this in Insert>Image>Database source.
Add a tablix component to your report, then assign your dataset to your tablix in the DataSetName property.
Delete columns and rows leaving only a textbox. Right click in the tablix and select Tablix properties... go to filter tab and add a new filter.
For Expression select Name, operator = and value use ="secondPlot".
The tablix will filter the row that contain secondPlot name and you can show the image in the tablix textbox by configuring background image property in the Fill tab.
Right click the textbox and select Textbox properties / Fill tab, in background image pane use settings like this.
UPDATE:
If your image is PNG, BMP, JPEG, GIF or X-PNG you can select the proper MIME Type.
Also if your image is encoded in Base64 you can try:
=System.Convert.FromBase64String(Fields!Plot.Value)
In the Use this field: expression.
Don't use any expression for the textbox. Just use the image field as textbox background.
Let me know if you need further help.

Show either chart or table based on radio button or checkbox in ssrs

I have a report request to show either chart or table using SSRS. I am mew to SSRS so not sure of woraround to make this work.
So far I tried below:
1. Create a "ShowDetails" parameter with
Data type - Boolean
Parameter Visibility - True
Available values - none
Default Values (non queried)- =False
2 In the chart properties set the Hidden to -> =Not(Parameters!ShowDetails.Value)
and toggle to textbox1 which I created for expand and collapse option.
Problem is radio button is not working ie., when I change the option to true no action on chart.Have to control the chart only by expand and collapse option.
Looking for other solution to show either chart or table based on show or hide parameter.
Thank You
Shilpa
I would write the expression in the Hidden Property of the chart like this instead.
=IIF(Parameters!ShowDetails.Value="False",True,False)
The above expression with some work around got me the answer. Below are the steps
Create a "ShowDetails" parameter with Data type - Boolean,Parameter Visibility - True Available values - Label-No, Value -True and Label-Yes, Value -False Default Values (non queried)- =True
2 In the chart properties set the visibility->Hidden -> =IIF(Parameters!ShowChart.Value="1",True,False)
With the above solution am able to hide and show the chart based on input parameter.
Thank You
Shilpa

Resources