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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

Feb2025 NL Carousel

Fabric Community Update - February 2025

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