Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply

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
v-chuncz-msft
Community Support
Community Support

@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
v-chuncz-msft
Community Support
Community Support

@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.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.