简体   繁体   English

具有可见滤镜的ssrs

[英]ssrs with visible filter

I have the above SSRS Report. 我有上面的SSRS报告。 I used adventurewoorks2014. 我使用了Adventurewoorks2014。 Any adventureworks will do. 任何冒险活动都可以。 My problem is that I want to filter by month in this example October 2011 so that the corresponding graph will turn yellow and others are still in blue and visible. 我的问题是,在此示例中,我想按2011年10月的月份进行过滤,以便相应的图形将变为黄色,而其他图形仍为蓝色且可见。 In other words, whenever I choose a value from the top the corresponding graph should turn yellow and I can still see other graph but in blue. 换句话说,每当我从顶部选择一个值时,对应的图形应变为黄色,并且我仍然可以看到其他图形,但显示为蓝色。 Any question please let me know. 如有任何问题,请通知我。 Many thanks in advance 提前谢谢了

    ----Query FROM Adventureworks
SELECT [SalesOrderID]
      ,[OrderDate]
,DATENAME(MONTH,[OrderDate])+' '+DATENAME(YEAR,[OrderDate]) AS MonthYear
FROM [Sales].[SalesOrderHeader]

    enter code here
--------Parameter query
SELECT distinct
DATENAME(MONTH,[OrderDate])+' '+DATENAME(YEAR,[OrderDate]) AS MonthYear
FROM [AdventureWorks2014].[Sales].[SalesOrderHeader]

在此处输入图片说明

Create an expression on the backcolor for the graph which sets to yellow if the corresponding label is the same as the selected parameter and blue if not. 在图形的背景色上创建一个表达式,如果相应的标签与所选参数相同,则将其设置为黄色,否则将设置为蓝色。

Note that if the parameter is changed then the report will need to be regenerated in order for the colour to change. 请注意,如果更改了参数,则需要重新生成报告以更改颜色。 There is no alternative to this behaviour in SSRS. SSRS中没有其他行为可以替代。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM