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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
ClemFandango
Advocate II
Advocate II

DAX for selecting all of the columns and data within a table

Hi all,

I am hoping someone can help? I have a bit of a DAX problem (hey who doesn’t)…

I have quite a complicated Power Automate Flow that takes the output from a PBI query, saves it into sharepoint by splitting and joining multiple files, which allows me to automate an extract of 100,000+ rows into CSV.

 

ClemFandango_0-1699948300063.png

 

 

My flow works fine, except for the DAX within the ‘Run a query against a dataset’ flow. All I want to do is export the contents of the table ‘Help’. The DAX in my examples work on columns that contain numbers, but it appears to fail if I add a column that contains a String like I have in 'Help’ [Test4], 'Help’ [Test5] 'Help’ [Test6]. If i add 'Help’ [Test3] (which is numeric) to the code below it will work.

 

I would like to use DAX to select all the columns in my table (about 35+)

 

 

// DAX Query
DEFINE
  VAR __DS0FilterTable = 
// Removes repeat headers
  FILTER(KEEPFILTERS(VALUES('Help’[Index])), and('Help’ [Index] >= @{variables('MinRows')}, 'Help’ [Index] <= @{variables('IncrRows')}))

// Export content of table 
VAR __DS0Core = 
CALCULATETABLE(
    SUMMARIZECOLUMNS(
	  'Help’[File.Name],
	  'Help’ [Index],
	  'Help’ [Test1],
	  'Help’ [Test2]),
			__DS0FilterTable
)

EVALUATE
	__DS0Core

ORDER BY
	‘Help’[Index]

 

 

Eternally grateful for any help!

1 REPLY 1
lbendlin
Super User
Super User

Your sample code uses funny single quotes.

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.