Quantcast
Channel: SQL Server Reporting Services, Power View forum
Viewing all articles
Browse latest Browse all 10045

Condition Formula is not working on Header Matrix!!!

$
0
0

Hi guys,

I have a matrix with months in the group column from Jan thru Dec 

I'm trying to implement a condition if the forecast indicator is found then put asterix at the end of the month. 

Here is the formula

=SWITCH(Fields!HasForecast.Value=FALSE,MonthName(Fields!Periods.Value, True),
		Fields!HasForecast.Value=TRUE,MonthName(Fields!Periods.Value,True)&"*")

HasForecast is a boolean (bit) datatype.


What am I doing wrong? 

The asterix is not showing up and no error

however when I put the formula with asterix (see below) without the condition, it works!

MonthName(Fields!Periods.Value,True)&"*"


I also tried the IIF statement and it didn't work. 

By the way I'm using the IIF statement in the data to highlight the data that is Forecast. 

I'm wondering if this condition won't work on the header. 

Much appreciated. 


Codernater




Viewing all articles
Browse latest Browse all 10045

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>