Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 950

Re: Calendar input control with just month and year

$
0
0

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:

  1. 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.
  2. 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.
  3. Drop [v_Quarter] on the left as Left Header, right click on it, go to Hide -> and click Hide Dimension
  4. Drop the v_Month Number Used in Table (measure) as the measure in the body of the crosstab.
  5. 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.
  6. 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


Viewing all articles
Browse latest Browse all 950

Trending Articles



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