Forum Discussion
CALCULATETABLE Function error
- Anonymous8 years ago
CALCULATETABLE returns a table but then you are passing this whole table into a measure, which expects a scalar value. How about using MAX('table'[column])?
CALCULATETABLE returns a table but then you are passing this whole table into a measure, which expects a scalar value. How about using MAX('table'[column])?
- Anonymous8 years agoNot applicable
Anonymous thanks for the reply.
I had assumed as much (I'm quite new to PowerBI but I have a strong T-SQL background).
I am simply trying to select the maximum Date (ColA) from Table1 where ColB is not null. Im I going about this the wrong way?
I used you solution in my first itteration but it does not allow for the NULL filter.
Thanks
- Anonymous8 years agoNot applicable
The problem was that I was trying to stuff a table into a scalar variable.
I fyou need the solution to the main issue please check https://community.powerbi.com/t5/Desktop/SELECT-MAX-Date-FROM-Source-WHERE-Reference-Column-IS-NOT-NULL/m-p/316533/highlight/false#M140644
Thanks