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

Highlighted
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
May 2020 Community Highlights

May 2020 Community Highlights

It’s time for another PBI Community recap!

Community Blog

Community Blog

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

Using the Community

Using the Community

Need help with the Power BI Community? Our 'Using the Community' support articles are a great place to start.

Galleries

Galleries

Looking for inspiration on how to present your data? Need instructional videos? Check out our Galleries!

Top Solution Authors