cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
yamunakosireddi Frequent Visitor
Frequent Visitor

Sum the Total days per month when filtered by Year

Hi Community,

 

I am new to power BI, and facing a problem when calculatinig total days in year for each month.

I could achieve getting the number of days per month by using NumberDaysMonth = DAY(ENDOFMONTH('Calendar'[Date])) however, I need their sum when we filtered with year 

 

for example:

 

Scenario 1: When year slicer filtered  for 2011 ( march,april,may) the total would be 92 (31 + 30+31).

 

MonthDays in Month
October30
December31
September30
November31
 122

 

Can any one help me on urgent bases.

 

All help will be appreciated.

Thank you so much

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: Sum the Total days per month when filtered by Year

@yamunakosireddi,

 

You may try a similar way as shown here.

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
3 REPLIES 3
Super User
Super User

Re: Sum the Total days per month when filtered by Year

@yamunakosireddi

 

What do you get if you use a MEASURE like

 

Measure = Count('Calendar'[Date])
yamunakosireddi Frequent Visitor
Frequent Visitor

Re: Sum the Total days per month when filtered by Year

Thanks For your reply,

 

Below is the output i am getting.

MonthDays in Month
October22
December22
September22
November22
 88
Community Support Team
Community Support Team

Re: Sum the Total days per month when filtered by Year

@yamunakosireddi,

 

You may try a similar way as shown here.

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.