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
Joshua_
Helper I
Helper I

Total business days per month

hi guys,

 

I need to add a column based on the maximum value of day_habil_mes of each month. 
I'm working with Date Table.

datetable.png

 

thank a lot !!!

regards

1 ACCEPTED SOLUTION
jdbuchanan71
Super User
Super User

@Joshua_ 

Give this a try.

max Day per month =
CALCULATE ( MAX ( Dai_Habil_mes ), ALLEXCEPT ( 'Dates', 'Dates'[Period] ) )

View solution in original post

3 REPLIES 3
Ashish_Mathur
Super User
Super User

Hi,

Try this calculated column formula

=calculate(max(dia_habil_mes),filter(data,data[period]=earlier(data[period])))

Hope this helps.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
jdbuchanan71
Super User
Super User

@Joshua_ 

Give this a try.

max Day per month =
CALCULATE ( MAX ( Dai_Habil_mes ), ALLEXCEPT ( 'Dates', 'Dates'[Period] ) )

its works.

thank @jdbuchanan71 

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.