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

Data Days is here! Join us now for 60+ days of learning, challenges, and connection. Learn more

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
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

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

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.