cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
powerbiuser101 Regular Visitor
Regular Visitor

Looking to append/create/insert new row to an existing table

I have 2 Tables, A & B. 

 

Table A is constantly changing on a weekly basis, whereas Table B will have records of date and sum. E.g. 

Table B

18.01.2018, 2

19.01.2018, 3

and so on, so we have a trend of a weekly value

 

I'm having a difficult time writing an IF statement in Advaned Editor to see if today's date already exist, then ignore, if today's datedoes not exist, then calculate sum in Table A and create a new row in Table B. 

 

I'm sure this could be resolved in the backend but it's what I have at the moment. 

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: Looking to append/create/insert new row to an existing table

@powerbiuser101,

 

You may perform Group By operation first, then refer to the code in this thread.

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
Community Support Team
Community Support Team

Re: Looking to append/create/insert new row to an existing table

@powerbiuser101,

 

You may perform Group By operation first, then refer to the code in this thread.

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
New Ranks and Rank Icons in 2020

New Ranks and Rank Icons in 2020

Read the announcement for more information!

New Kudos Given Badges Coming

New Kudos Given Badges Coming

We're rolling out new Kudos Given badges. Find out how many Kudos you've given.

November 2019 Community Highlights

November 2019 Community Highlights

Get an overview of the events and great community content from November.

Power Platform World Tour

Power Platform World Tour

Find out where you can attend!

Top Solution Authors
Top Kudoed Authors (Last 30 Days)