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
Anonymous
Not applicable

adding column with DAX in query editor

HI, Mr/Ms genius, 

 

I cannot add a column using DAX measure in query editor.

 

The DAX measure (below) is proven valid in normal data view, but I think you cannot add a column with DAX in Query Editor. Can someone help me translate this command of creating a new column into M? Or is there any other way around this?

 

DAX: 

IsLatestChangedDateByID = TableName[ChangedDate] = 
	CALCULATE(
		LASTNONBLANK(TableName[ChangedDate], 1), 
		FILTER(ALL(TableName), TableName[ID]=EARLIER(TableName[ID]))
	)

 

I need this column to be in Query editor for me to filter the table and merge with another table. 

 

Can someone help me pls? 

 

Many thanks, 

 

Zishu

0 REPLIES 0

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

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

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.