Hi Vinoth,
I got it to work, below are the steps:
Create the below Dimension variables:
- v_Month Name =FormatDate([Date];"Mmm")
- v_Month Number =MonthNumberOfYear([Date])
- v_Months in different Rows
=If([v_Month Number] InList (1;4;7;10)) Then 1
ElseIf([v_Month Number] InList (2;5;8;11)) Then 2
ElseIf([v_Month Number] InList (3;6;9;12)) Then 3
- v_Quarter =Quarter([Date])
- v_Year =FormatNumber(Year([Date]);"#") (Updated)
Create the below Measure variable
- v_Month Number Used in Table =Max([v_Month Number])
Create the table structure:
- Drop a blank Crosstab in the report, drop [v_Year] on the top as Column Headers, create a Break on it, in the break properties, uncheck Break Header, Break Footer and select Merge under Duplicate Values. Click Apply and OK.
- Drop v_Months in different Rows on top as the 2nd Column Header, and then right click on it, go to Hide -> click Hide Dimension, as we want it to be hidden.
- Drop [v_Quarter] on the left as Left Header, right click on it, go to Hide -> and click Hide Dimension
- Drop the v_Month Number Used in Table (measure) as the measure in the body of the crosstab.
- Create Conditional Formatting as v_Month Number Used in Table Equal to v_Month Number object, then click on Format -> Display -> Formula => write [v_Month Name]. Click Apply and OK.
- Finally, right click on the table -> Linking -> click on Add Element Link -> select All Objects -> Next -> Next -> select the Dependency and click Finish.
Voila, you got it. Let us know if you have any questions or issues.
Soon, I'll write a blog about it.
Thanks,
Mahboob Mohammed