Quantcast
Viewing all articles
Browse latest Browse all 2791

Column group tablix, how to keep certain value in line

Hi, allI have that data and I group it by YearID in column group, but I need to keep value for given Period separately, so let say if @param = 201304, then I need to have Column < 201304 with value '444', I tried to put his Expression into column but it still pick up first value in ds = 4200, is it possible to achieve this inside rdl ?Appreciate your help.Best Mario[code="sql"]/* this is desired output on rdl:----------------------------------------------CustID Name 2013 2014 201304----------------------------------------------12345 Alpha 999 8500 444----------------------------------------------*/-- declare @param int = 201304--=Iif(Fields!Period.Value = Parameters!Param.Value,Fields!Earnings.Value,111) -- doesn't workselect '12345' CustID, 'Alpha' Name, 2014 YearID, 4200 Amt, 201402 Period UNION select '12345' CustID, 'Alpha' Name, 2014 YearID, 4300 Amt, 201403 Period UNION select '12345' CustID, 'Alpha' Name, 2013 YearID, 222 Amt, 201302 Period UNION select '12345' CustID, 'Alpha' Name, 2013 YearID, 333 Amt, 201303 Period UNION select '12345' CustID, 'Alpha' Name, 2013 YearID, 444 Earnings , 201304 Period [/code]

Viewing all articles
Browse latest Browse all 2791

Trending Articles