cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper IV
Helper IV

Custom Column error with Calculate Filter DAX

I had perfectly working custom column, which worked fine when created in "Data" view of Power BI. No errors.

When I deleted column and tried to create again in "Edit Query" view (Edit Query->Add Column->Custom Column->Custom Column Formula), I'm getting error. Why exactly same DAX formula is not working?

 

MachineId =

CALCULATE (

FIRSTNONBLANK ( Machine[MachineId], 1 ),

FILTER ( ALL ( Machine ), Machine[MaintenanceId] = MachineSelectedForUnion[Code] )

)

 

Table_Calculate_Error.png

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Super User I
Super User I

Re: Custom Column error with Calculate Filter DAX

Hi @kenny_i 

 

You can't use DAX within Power Query - Power Query uses the M language.

 

Best regards,

Martyn.

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

2 REPLIES 2
Highlighted
Super User I
Super User I

Re: Custom Column error with Calculate Filter DAX

Hi @kenny_i 

 

You can't use DAX within Power Query - Power Query uses the M language.

 

Best regards,

Martyn.

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

Post Partisan
Post Partisan

Re: Custom Column error with Calculate Filter DAX

Hi,

 

check the relationship, it was posible to had breaken when you deleted the column.

 

Hope it helps,

Cosmin

Helpful resources

Announcements
August 2020 Community Challenge: Can You Solve These?

August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!

Community Blog

Community Blog

Visit our Community Blog for articles, guides, and information created by fellow community members.

Upcoming Events

Upcoming Events

Wondering what events you could join or have an event to promote yourself? Check out our Upcoming Events.

Community Summit Australia – Join Online!

Community Summit Australia – Join Online!

Be a part of the leading Microsoft Business Applications digital event, curated for the APAC community.

Top Solution Authors
Top Kudoed Authors