I need to calculate, using DAX (Data Analysis eXpressions), how many days within a given range fall into each calendar month.
I am given 2 dates, which define a date range; for example 2016-07-01 to 2016-08-03. I need to find how many days in that range fall in to each month i.e. how many fall into July, and how many into August.
In the example given, the expected result is 30 days in July and 2 days in August.