Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The FabCon + SQLCon recap series starts April 14th at 8am Pacific. If you’re tracking where AI is going inside Fabric, this first session is a can't miss. Register now

Reply
Anonymous
Not applicable

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 3
Ashoka98
New Member

Hello,

 

Please use EARLIER function while refereing a where clause

Icey
Community Support
Community Support

Hi @Anonymous ,

 

What's the data structure of your tables of "Roadmap DB" and "Memory Data"? And how do you create relationships among the three tables of "Calendar", "Roadmap DB" and "Memory Data"? 

 

Please create a simple sample to help us understand your model and please show us your expected result. Please don't contain any sensitive information.

 

Reference: 

How to Get Your Question Answered Quickly - Microsoft Power BI Community

How to provide sample data in the Power BI Forum - Microsoft Power BI Community

 

 

Best Regards,

Icey

tamerj1
Community Champion
Community Champion

Hi @Anonymous 
Please provide sample data along with the expected result. Also please provide screenshot of your data model and advise the columns involved in the relationships.

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.