Skip to main content

Notifications

Community site session details

Community site session details

Session Id : WGq1pC/0JG4+I1Ejyw+iUt
Power Apps - Building Power Apps
Answered

Virtual Column - Canvas App

Like (0) ShareShare
ReportReport
Posted on 5 Jun 2021 11:22:26 by 538

Team how to derive the  the virtual column result in the same query . Tried with follows but could not ,

 

Following formula.

Test1.Run(User().Email,
JSON(With( {TheTable:
Filter(ShowColumns(Dailyinventory,"crf99_sno","crf99_materialdesc","crf99_materialno","createdon","crf99_bbd","crf99_qty"),DateDiff(createdon, Today(),Days) =0)},
ShowColumns(AddColumns(GroupBy(TheTable,"crf99_materialdesc","NewGroup"),
"Materialno",First(NewGroup).crf99_materialno,
"Qty",Sum(NewGroup,crf99_qty),

"Created On",Last(NewGroup).createdon,
"bbd",Last(NewGroup).crf99_bbd,
"Sap-Stock",LookUp(sapstock,material=First(NewGroup).crf99_materialno ,unrestrictedStock)),

"Created On","bbd","crf99_materialdesc","Materialno","Qty","Sap-Stock")

)))

 

 

Tried with adding following code but no luck .

 

"Diff" , "Sap-Stock" - "Qty"

 

 

Any help much appreciated.

  • CNT Profile Picture
    10,919 Super User 2025 Season 1 on 05 Jun 2021 at 15:20:21
    Re: Virtual Column - Canvas App

    @AVTS Glad to help!

     

    Please remember to give a 👍 and accept the solution as it will help others in the future.

  • AVTS Profile Picture
    538 on 05 Jun 2021 at 15:12:45
    Re: Virtual Column - Canvas App

    Yes . It worked. Thank you .

  • CNT Profile Picture
    10,919 Super User 2025 Season 1 on 05 Jun 2021 at 15:00:25
    Re: Virtual Column - Canvas App

    @AVTS Hope the solution worked!

     

    Please remember to give a đź‘Ť and accept the solution as it will help others in the future.

  • Verified answer
    CNT Profile Picture
    10,919 Super User 2025 Season 1 on 05 Jun 2021 at 12:58:10
    Re: Virtual Column - Canvas App

    @AVTS To add virtual (Calculated) columns, you have to use AddColumns() like this,

    AddColumns(TheTable, "Diff", 'Sap-Stock' - 'Qty')

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,731 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,077 Most Valuable Professional

Leaderboard
Loading started