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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Virtual Incremental Co...
Power Apps
Answered

Virtual Incremental Column no - Canvas Ap

(0) ShareShare
ReportReport
Posted on by 538

Team,

I have the formula with groupby concept. In this i would like to add virtual incremental number instea of from table,

 

Below is my codings,

 

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"))))

 

Below is my current result,

 

AVTS_0-1622892366968.png

 

Exepect result, Show virtual column  in first row "Sno"

 

AVTS_1-1622892425384.png

 

Categories:
  • Verified answer
    CNT Profile Picture
    10,921 Super User 2024 Season 1 on at

    @AVTS Try this,

     

    Test1.Run(User().Email, 
     JSON(With(
     {TheTable: 
    	 ShowColumns(
    			AddColumns(
    			 GroupBy(
    				Filter(
    					ShowColumns(
    					 Dailyinventory, "crf99_sno", "crf99_materialdesc", 
    					 "crf99_materialno", "createdon", 
    					 "crf99_bbd", "crf99_qty"
    					), 
    					DateDiff(createdon,Today(),Days) = 0
    				), "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"
    		)
    	 },
    	 ForAll(Sequence(CountRows(TheTable)), 
    		Patch(Last(FirstN(TheTable, Value)),{Sno : Value}))
     )
     )
    )
  • CNT Profile Picture
    10,921 Super User 2024 Season 1 on at

    @AVTS Hope the solution worked!

     

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

  • AVTS Profile Picture
    538 on at

    Yes . It worked. Thank you .

  • CNT Profile Picture
    10,921 Super User 2024 Season 1 on at

    @AVTS Glad to help!

     

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

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 360 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 325

#3
Mohsin Ali Profile Picture

Mohsin Ali 232

Last 30 days Overall leaderboard