cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
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 Kudos Received Badges Coming

New Kudos Received Badges Coming

Kudos to you if you earned one of these! Check your inbox for a notification.

Microsoft Implementation for Communities Wins Award

Microsoft Implementation for Communities Wins Award

Learn about the award-winning innovation that was implemented across Microsoft’s Business Applications Communities.

Power Platform World Tour

Power Platform World Tour

Find out where you can attend!

Top Kudoed Authors (Last 30 Days)
Users online (2,862)