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

Re: Days Calculation using Quarter and Year

$
0
0

Hello Subhradeep,


As Sateesh said you can Hard-Core the values based on IF condition.

But this will not give exact values in case of Leap-Year.

 

For any Quarter First day and Last day is fixed. So you can Hard Core and use "DaysBetween" Function. For year you can use Existing Dimension to formulate Date,something like below

 

Start Date Q1:

= "01/01/" + [Year]

 

End Date Q1:

= "31/03/" + [Year]

 

If you use "DaysBetween" on these days it will take care of "Leap Year" Also.

 

Regards,

Sushil Padhye


Viewing all articles
Browse latest Browse all 9129

Trending Articles



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