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
Meet the 2020 Season 2 Power BI Super Users!

Meet the 2020 Season 2 Power BI Super Users!

Find out who's part of the program this season, and welcome the new Super Users.

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!

July 2020 Community Highlights

July 2020 Community Highlights

Learn about the exciting things that happened in July.

Featured Data Story of The Month

Featured Data Story of The Month

All Data Stories Gallery contributions are reviewed for each month. We select a contribution and feature the community member the following month.

Power BI Dev Camp - Developing with .NET Core

Power BI Dev Camp - Developing with .NET Core

Learn how to develop custom web applications for Power BI using .NET Core 3.1 and .NET 5.

Top Solution Authors
Top Kudoed Authors