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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

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.