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

DAX Measures error

Hello,

 

I'm connecting live to PBI with Tabular model, and having trouble with some DAX measures.

I can't create DAX measures with "if" statements... the column name is highlighted in red, but no explicit error text is provided...

Do all measures need to include an aggregative function (sum, avg, max...)? Or can DAX measures just be some logic expression like if?

 

Thank you!

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Super User II
Super User II

Re: DAX Measures error

@Yael all measures need to be aggregated, otherwise you need to use a calculated column (not sure thats possible in a live connection to tabular)





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 II
Super User II

Re: DAX Measures error

@Yael all measures need to be aggregated, otherwise you need to use a calculated column (not sure thats possible in a live connection to tabular)





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

Proud to be a Super User!




View solution in original post

Highlighted
Helper IV
Helper IV

Re: DAX Measures error

Thanks a lot @vanessafvg !

Helpful resources

Announcements

August Community Highlights

Check out a full recap of the month!

August 2020 CYST Challenge

Check out the winners of the recent 'Can You Solve These?' community challenge!

Experience what’s next for Power BI

Join us for an in-depth look at the new Power BI features and capabilities at the free Microsoft Business Applications Launch Event.

Top Solution Authors
Top Kudoed Authors