Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
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

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

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

Leaderboard > Power Apps - Building Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 250 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 122

#3
stampcoin Profile Picture

stampcoin 108

Overall leaderboard
Loading started