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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
immaruthi
Regular Visitor

How to get an amount value based on their dependent id ?

Hi Team,

 

Any one can please help me to acheive below work item ? Question1.jpg
I want DAX measure to create a new column Nssr Amount. 

 

Regards,

Maruthi.P 

1 ACCEPTED SOLUTION

Hi @immaruthi ,

 

You could refer to the following DAX:

Column =
LOOKUPVALUE('Table'[Amount],'Table'[ID],('Table'[Nssr ID]))

Here is my result.

1-1.PNG

 

Community Support Team _ Eads
If this post helps, then please consider Accept it as the solution to help the other members find it.

View solution in original post

4 REPLIES 4
amitchandak
Super User
Super User

Try

NSSR Amount = minx(filter(table,table[ID]=earlier(table[NSSR ID])),table[Amount])

 

Appreciate your Kudos. In case, this is the solution you are looking for, mark it as the Solution. In case it does not help, please provide additional information and mark me with @
Thanks. My Recent Blog -
Winner-Topper-on-Map-How-to-Color-States-on-a-Map-with-Winners , HR-Analytics-Active-Employee-Hire-and-Termination-trend
Power-BI-Working-with-Non-Standard-Time-Periods And Comparing-Data-Across-Date-Ranges

Connect on Linkedin

Thanks for your reply. I am getting an error like -> 'Earlier/Earliest' refers to an earlier row context which doesn't exist.'

Hi @immaruthi ,

 

You could refer to the following DAX:

Column =
LOOKUPVALUE('Table'[Amount],'Table'[ID],('Table'[Nssr ID]))

Here is my result.

1-1.PNG

 

Community Support Team _ Eads
If this post helps, then please consider Accept it as the solution to help the other members find it.

It's working fine. Thanks for your support. 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.