Reply
avatar user
Anonymous
Not applicable
Partially syndicated - Outbound

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
avatar user
Anonymous
Not applicable

Syndicated - Outbound

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
avatar user
Anonymous
Not applicable

Syndicated - Outbound

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

Syndicated - Outbound

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?

avatar user

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.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

Top Solution Authors (Last Month)
Top Kudoed Authors (Last Month)