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
adityah
Frequent Visitor

How to find a value with multiple conditions

I have a table which looks something like this

 

Renewal_IDOffer_idGeneral_excess
12677130000
12677210000
12677020000
12712730000
12712810000
12712020000

 

This is just a snapshot and there are multiple renewal_id's and offer_id's. I am trying to add a new column which captures the general_excess for offer_id = 0 for each renewal_id column. it should look something like this:

 

Renewal_IDOffer_idGeneral_excessGeneral_excess_o
1267713000020000
1267721000020000
1267702000020000
1271273000020000
1271281000020000
1271202000020000

 

I tried using lookupvalue but that results in multiple values being returned. Sorry if this question seems very trivial but I am just learning powerbi. Any help will be appreciated!

 

Thanks

1 ACCEPTED SOLUTION

Hey, yes this seems to work. Thank you!!

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@adityah , A new column

maxx(filter(Table, [Renewal_ID] = earlier([Renewal_ID])  && [Offer_id] =0) , [General_excess])

Hey, yes this seems to work. Thank you!!

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.