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

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

Reply
Anonymous
Not applicable

DAX formula error AddColumn and Summarize

MaxChangeNumberTable =
SUMMARIZE (
CallOff_Delivery_Dates,
CallOff_Delivery_Dates[CallOffID],
"MaxChangeNumber", MAX ( CallOff_Delivery_Dates[ChangeNumber] )
)

=ResultTable=
ADDCOLUMNS (
MaxChangeNumberTable,
"DeliveryDate", LOOKUPVALUE (
CallOff_Delivery_Dates[DeliveryDate],
CallOff_Delivery_Dates[CallOffID], MaxChangeNumberTable[CallOffID],
CallOff_Delivery_Dates[ChangeNumber], MaxChangeNumberTable[MaxChangeNumber]
)
)

 

Hi everone

My DAX code above is not working. Somehow I couldn't run this code I made in power Query. I don't know where is the mistake.

I want to group according to the CallOffID field in the table I have. Afterwards, CallOffID is repeated in some lines and there is a ChangeNumber corresponding to each CallOffID. These start from 1 and progress upwards. I want to capture the largest number in this ChangeNumber field and list the DeliveryDate next to this number. But it didn't work. I will be glad if you can help.

 

 

"Expression.Error: The name 'MaxChangeNumberTable' wasn't recognized. Make sure it's spelled correctly."

 

 

It gives this error message

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous ,

 

In Power Query, the code we use is M language. We use DAX language in Power BI Desktop. Attempting to run the DAX language in Power Query will certainly not succeed.

Quick tour - PowerQuery M | Microsoft Learn

DAX overview - DAX | Microsoft Learn

M or DAX? That is the Question! - RADACAD

                                                                                                                                                         

Best Regards,

Stephen Tao

 

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

2 REPLIES 2
Anonymous
Not applicable

Hi @Anonymous ,

 

In Power Query, the code we use is M language. We use DAX language in Power BI Desktop. Attempting to run the DAX language in Power Query will certainly not succeed.

Quick tour - PowerQuery M | Microsoft Learn

DAX overview - DAX | Microsoft Learn

M or DAX? That is the Question! - RADACAD

                                                                                                                                                         

Best Regards,

Stephen Tao

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.           

Anonymous
Not applicable

any answer please

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.

Top Kudoed Authors