web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Trying to use an Excel...
Power Apps
Answered

Trying to use an Excel formula in Dataverse table

(1) ShareShare
ReportReport
Posted on by 78
I have several formulas in an Excel spreadsheet all of which I have converted to work in a DataVerse table as it is a much better solution. However, I am struggling with the following:
 
=CHOOSE(MONTH(DATE(F2,1,G2*7-2)-WEEKDAY(DATE(G2,1,3))), "01", "02", "03", "04", "05", "06", "07", "08", "09", "10", "11", "12")
 
Basically, I have a value for the YEAR(F2)  and the WEEK NUMBER (G2) and I am trying to extract the month.
 
I am a reasonably competent Excel and Powerapps user but can't crack this.
 
Simon
Categories:
I have the same question (0)
  • Verified answer
    SumoTechSimon Profile Picture
    78 on at
    Fixed this by using the formula:
     
    With({weekDate:
    If(ISOWeekNum(Date(year,1,1)) <1,
    DateAdd(Date(year,1,1), 7* (weekNo-1)),
             DateAdd(Date(year,1,1), 7* weekNo)
          )
          },
          DateAdd(weekDate,
            -(Weekday(weekDate,StartOfWeek.MondayZero)),
            TimeUnit.Days
       )
     )
    ))
     

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard