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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric 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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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