cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
New Member

CHANGE MASSIVE NULL VALUES SQL

HI, 

I`m trying to filter all null value from a sql table and change with a date. 

 


Patch(
'[VA].[TABLE]';
Filter(
'[VA].[TABLE]';
DATE_MOD= ""
);
{DATE_MOD: Text(Today())})

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Microsoft
Microsoft

Hi @s_murillo ,

 

Do you want to filter the whole table and update current date to empty fields?

How many records are in the table? How many records with null fields in the table?

 

IMO, it’s easier and faster to manage the table fields directly in a large SQL table, but if you insist to update in PowerApps, change the formula to:

 

UpdateIf(
        '[VA].[TABLE]',
        DATE_MOD=Blank(),
        {DATE_MOD: Text(Today()}
)

 

If you meet further problems, please let us know.

 

Best regards,
Community Support Team _ Jeffer Ni
If this post helps, then please consider Accept it as the solution  to help the other members find it more.

View solution in original post

2 REPLIES 2
Highlighted
Dual Super User III
Dual Super User III

I would really recommend doing this with a stored Procedure in SQL.  That will provide the best performance.  If you want to integrate it with Power Apps you can invoke the stored procedure using Power Automate and start the flow in Power Automate from Power Apps.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.
Highlighted
Microsoft
Microsoft

Hi @s_murillo ,

 

Do you want to filter the whole table and update current date to empty fields?

How many records are in the table? How many records with null fields in the table?

 

IMO, it’s easier and faster to manage the table fields directly in a large SQL table, but if you insist to update in PowerApps, change the formula to:

 

UpdateIf(
        '[VA].[TABLE]',
        DATE_MOD=Blank(),
        {DATE_MOD: Text(Today()}
)

 

If you meet further problems, please let us know.

 

Best regards,
Community Support Team _ Jeffer Ni
If this post helps, then please consider Accept it as the solution  to help the other members find it more.

View solution in original post

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Community Highlights

Community Highlights

Check out the Power Platform Community Highlights

Top Solution Authors
Top Kudoed Authors
Users online (12,126)