Quantcast
Channel: SQLServerCentral » Reporting Services » Reporting Services » Latest topics
Viewing all articles
Browse latest Browse all 2791

Switch searching for indicator

$
0
0
Hi I'm creating a report where the datasource is three SharePoint lists. I have a column that is utilizing four indicators for "yes" "no" "maybe" and an empty string. I have another column that will show only one indicator to represent if a certain indicator is present amongst all the indicators in that one column and it must go in a certain order: "maybe" "no" "yes" or else there is nothing in any of the cells so its all empty. For example: if there is at least one "maybe" then the main indicator needs to represent that. If there aren't any "maybes" then it will look for a "no." If it doesn't find any "maybes" "nos" or "yeses" then there must be no data in any of the cells. Each indicator is represented by either 2, 1, 3, 4 respectively. Here is what I have but it gives me an error saying "An error has occurred during data evaluation of the GaugePanel 'Gaugepanel5'=switch(Lookup(Fields!Key.Value, Fields!Key.Value, Fields!Data.Value, "KeyData")="Maybe",2,Lookup(Fields!Key.Value, Fields!Key.Value, Fields!Data.Value, "KeyData")="No",1,Lookup(Fields!Key.Value, Fields!Key.Value, Fields!Data.Value, "KeyData")="Yes",3,4)4 is the empty string ""If anyone could tell me what could be wrong. Thanks!

Viewing all articles
Browse latest Browse all 2791

Trending Articles