Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Anonymous
Not applicable

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
v-chuncz-msft
Community Support
Community Support

@Anonymous,

 

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.

View solution in original post

3 REPLIES 3
v-chuncz-msft
Community Support
Community Support

@Anonymous,

 

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.
Zubair_Muhammad
Community Champion
Community Champion

@Anonymous

 

What do you get if you use a MEASURE like

 

Measure = Count('Calendar'[Date])

Regards
Zubair

Please try my custom visuals
Anonymous
Not applicable

Thanks For your reply,

 

Below is the output i am getting.

MonthDays in Month
October22
December22
September22
November22
 88

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.