Skip to main content

Notifications

Community site session details

Community site session details

Session Id : ELxAA5IYDEHvnsZqK5AAe+
Power Apps - Building Power Apps
Suggested answer

Dataverse Formula Column (help needed)

Like (1) ShareShare
ReportReport
Posted on 14 Mar 2025 11:39:37 by 71
I have two dataverse tables.
 
Asssets:
 
A unique list of all assets
 
Asset Bookings:
 
A list of bookings with a start and end date, where one asset can have many bookings (but not on the same dates).
 
Is it possible to create a column in the Asset table to show the current status of the asset based on the rule:
 
If the asset has no active bookings where the start-end date period is today then AVAILABLE but if the start-end date does fall within todays date (i.e there is an active booking) then BOOKED

I created this a column in my Gallery but get a deligation warning and wanted to move the column into dataverse
 
 
If(
    IsBlank(LookUp('Asset Bookings', GUID(AssetGUID) = ThisItem.Asset && 'Start Date' <= Today() && 'End Date' >= Today())),
    "Available",
    "Booked"
)
Categories:
  • Suggested answer
    Jacqui Muller Profile Picture
    46 on 14 Mar 2025 at 13:36:04
    Dataverse Formula Column (help needed)
     
    I hope you are well.
     
    This is a tricky one. Calculated columns are usually my go-to but in this case, I don't think the dates are going to work in the calculated column. 
     
    The other option is to have a Power Automate flow that runs daily for each item but depending on how many assets you have, it might not be feasible due to API call limits. 
     
    My suggestion would be to stick with the delegation warning and perhaps look at changing your approach to how many records you show in the gallery, rather add some filters.
     
    Hope this helps.

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

Thomas Rice – Community Spotlight

We are honored to recognize Thomas Rice as our March 2025 Community…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community

Announcing Our 2025 Season 1 Super Users!

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

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,508 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,431 Most Valuable Professional

Leaderboard
Loading complete