Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>You can modify the <code>Hidden</code> expression to achieve this:</p> <p>Turn all the selected reports into a string using <code>Join</code>, then check if the relevant report name is in the string, something like:</p> <pre><code>=IIf( InStr(Join(Parameters!WhichReport.Value, ","), "Occupancy Report") &gt; 0 , False , True ) </code></pre> <p>Or, for a different item:</p> <pre><code>=IIf( InStr(Join(Parameters!WhichReport.Value, ","), "Capacity Report") &gt; 0 , False , True ) </code></pre> <p><strong>Edit after comment:</strong></p> <p>I guess you're getting mismatches as values like <code>PitchNightsSold</code> and <code>PitchNightsSoldAndCapacity</code> will confuse the expression as written.</p> <p>I would use a Dataset similar to the following to control item visibility:</p> <pre><code>Label Value ----- ----- Occupancy Chart1 Pitch Nights Sold Chart2 Capacity Chart3 Pitch Nights Sold And Capacity Chart4 Pitch Nights Sold And Occupancy Chart5 Pitch Nights Sold Capacity And Occupancy Chart6 </code></pre> <p>Then expressions like:</p> <pre><code>=IIf( InStr(Join(Parameters!WhichReport.Value, ","), "Chart1") &gt; 0 , False , True ) </code></pre> <p>Will only ever apply to one item.</p> <p>Since these are your own internal constant values, you can call them whatever you want; just make them distinct and unambiguous. The label will remain unchanged so users will be unaffected when running the report.</p> <p><strong>Edit after comment:</strong></p> <p>In a comment @glh offers a good solution to similar <code>Value</code> values:</p> <blockquote> <p>...if you wrap you join in commas and search for them this will remove the partial finds.</p> </blockquote> <p>So something like:</p> <pre><code>=IIf( InStr("," + Join(Parameters!WhichReport.Value, ",") + ",", ",PitchNightsSold,") &gt; 0 , False , True ) </code></pre> <p>Would work very well, too; credit to him for the suggestion.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload