The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
I have a table which looks something like this
Renewal_ID | Offer_id | General_excess |
12677 | 1 | 30000 |
12677 | 2 | 10000 |
12677 | 0 | 20000 |
12712 | 7 | 30000 |
12712 | 8 | 10000 |
12712 | 0 | 20000 |
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_ID | Offer_id | General_excess | General_excess_o |
12677 | 1 | 30000 | 20000 |
12677 | 2 | 10000 | 20000 |
12677 | 0 | 20000 | 20000 |
12712 | 7 | 30000 | 20000 |
12712 | 8 | 10000 | 20000 |
12712 | 0 | 20000 | 20000 |
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
Solved! Go to Solution.
@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!!
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the August 2024 Power BI update to learn about new features.
Learn from experts, get hands-on experience, and win awesome prizes.
User | Count |
---|---|
18 | |
18 | |
17 | |
15 | |
13 |
User | Count |
---|---|
36 | |
34 | |
19 | |
18 | |
16 |