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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

Vencimento em dias uteis

 
Oi boa noite!
Eu trabalho com ordens e elas tem prazos de 5 e 10 dias. Com isso eu preciso somar a uma data esses prazos.
Exemplo prazo 5 dias : Data da ordem 01/12/2023 ela precisa vencer 08/12/2023 - em dias úteis Exemplo prazo 10 dias : Data da ordem 02/12/2023 ela precisa vencer 15/12/2023 - em dias úteis

Consegue me ajudar?
1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous ,

You can create a calculated column as below to get it assume that you have one date table in your model:

Due Date = 
MAXX (
    TOPN (
        'Table'[Day term],
        FILTER (
            ALL ( 'Date' ),
            WEEKDAY ( 'Date'[Date], 2 ) < 6
                && 'Date'[Date] > 'Table'[Order date]
        ),
        'Date'[Date], ASC
    ),
    'Date'[Date]
)

vyiruanmsft_0-1703749725352.png

Best Regards

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @Anonymous ,

You can create a calculated column as below to get it assume that you have one date table in your model:

Due Date = 
MAXX (
    TOPN (
        'Table'[Day term],
        FILTER (
            ALL ( 'Date' ),
            WEEKDAY ( 'Date'[Date], 2 ) < 6
                && 'Date'[Date] > 'Table'[Order date]
        ),
        'Date'[Date], ASC
    ),
    'Date'[Date]
)

vyiruanmsft_0-1703749725352.png

Best Regards

lbendlin
Super User
Super User

Does your data model include a calendar table with a column identifying work days, weekends and holidays?

 

What granularity do you need?  Whole days, hours, something else?

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.