Skip to main content

Notifications

Power Apps - Microsoft Dataverse
Answered

Weekday of Date in Dataverse table of Model Driven Forms

(1) ShareShare
ReportReport
Posted on by 74

HI

 

I need to create a calculated column with the below formula in Dataverse column

Case(DayOfWeek([Date]),
0, "Sunday",
1, "Monday",
2, "Tuesday",
3, "Wednesday",
4, "Thursday",
5, "Friday",
6, "Saturday")

Date: Time zone issue.

 

Can you please guide me how can i achieve the above in Model driven app or dataverse table calculated column.

 

Many Thanks

SG

 

 

 

 

  • Verified answer
    Jonathan Manrique Profile Picture
    Jonathan Manrique 2,678 on at
    Re: Weekday of Date in Dataverse table of Model Driven Forms

    Hi @SG013 

     

    I used Power FX in the Dataverse formula columns.

    The first thing is that this date column must have the format in the "Time Zona Adjustament" property only in Date Only for the formula to work.

    Jmanriquerios_0-1720507433121.png

     

    Then you can use the following formula

     

    If(Weekday(Fecha)=1,"Sunday",If(Weekday(Fecha)=2,"Monday",If(Weekday(Fecha)=3,"Tuesday")))

    Jmanriquerios_1-1720507477587.png

     

     

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,445

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,741

Leaderboard

Featured topics