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

Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers. Get Fabric certified for FREE! Learn more

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])

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

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

Helpful resources

Announcements
PBIApril_Carousel

Power BI Monthly Update - April 2025

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

Notebook Gallery Carousel1

NEW! Community Notebooks Gallery

Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.

April2025 Carousel

Fabric Community Update - April 2025

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