I need to filter rows using Report Filter using variable, variable is defined as measure. As soon as I put variable in report filter no data showing up, all data disappearing, following is my variable.
Create another data provider DP2 with two objects Entity, Date and do a override sql (modify SQL as per your requirement) as below and run the query.
SELECT Entity, ‘No’ FROM dbo.table1 WHERE [Date] IS NULL
Goto Merged Dimension, select Entity from DP1 and Entity from DP2 and select Merge.
Select objects Entity, Item, Date from DP1 and goto Table properties and check box Display->Avoid Duplicate Row Aggregation.
Click the Table and Click Filter icon from the tool bar, drop [DP2].[Date ]object on the filter pane and select value from the list ‘No’ and click ok.
The table should display only 49082 and 49083 rows only.
The idea is to have second data provider that tells which Entity rows should show. By merging two data providers you get to know which row to display along with the required data.