Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago

DAX: Return value from other column in same row

Hi,

I am working on a matrix based gantt chart in Power BI and instead of 1 I wanted to return value from other column but from same row:

Time Period =
VAR _program = CALCULATE(MAX('Roadmap DB'[Program]))

VAR _startDate=
CALCULATE(
MIN('Memory Data'[Start])
,ALL('Calendar')
)
VAR _period=
MIN('Calendar'[Start Date(Cal)])>=_startDate

RETURN
IF(_period,_program)
 
But its getting value from whole table instead of particular column, is there a way to get the value only from the row in question?

3 Replies