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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / How to remove or delet...
Power Automate
Unanswered

How to remove or delete columns of CSV exported by power apps

(1) ShareShare
ReportReport
Posted on by 5
I want to export a collection in power apps by power automate. This is the button code: 
Set(
    varJSONVisibleDVtest,
    JSON(
        ShowColumns(
            VisibleDVtest,
            '试验项目',
            '试验标准/方法',
            '2WM Inner',
            '2WM Outer',
            '2WM H-Frame',
            '4WM Inner',
            '4WM Outer',
            '4WM H-Frame',
        ),
        JSONFormat.IndentFour
    )
);
Set(varCSVFile,ExportAcquisitionfile.Run(varJSONVisibleDVtest));
Then I use power automate to export a CSV file. 
But some of the columns('2WM Inner','2WM Outer','2WM H-Frame','4WM Inner','4WM Outer','4WM H-Frame')are blank I didn't input any value in app, so when I export the file I want to remove or delete the blank column.
How can I do this?
Categories:
I have the same question (0)
  • Suggested answer
    DJ_Jamba Profile Picture
    2,837 Super User 2025 Season 2 on at
    Could you try this in Power Apps?
    With(
    	{
    		fvar_DVTest: ShowColumns(
            		VisibleDVtest,
               		'试验项目',
                		'试验标准/方法',
                		'2WM Inner',
                		'2WM Outer',
                		'2WM H-Frame',
                		'4WM Inner',
                		'4WM Outer',
                		'4WM H-Frame',
            	)
    	},
    	Set(
        		varJSONVisibleDVtest,
        		JSON(
                		Filter(
                        		fvar_DVTest,
                        		And(
                            		!IsBlank('2WM Inner'),
                            		!IsBlank('2WM Outer'),
                            		!IsBlank('2WM H-Frame'),
                            		!IsBlank('4WM Inner'),
                            		!IsBlank('4WM Outer'),
                            		!IsBlank('4WM H-Frame')
                        		)
                		),
            		JSONFormat.IndentFour
        		)
     	)
    );
     

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard