Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more
Hello. I need to create a column that takes values from a column based on more than one condition. Example:
| Variety | Period | Bags | 
| P1 | M | 120 | 
| P2 | M | 159 | 
| P3 | M | 101 | 
| P4 | P | 90 | 
| P5 | P | 95 | 
I needed to create a column that showed the variety whose bags were larger in a given period. It would look something like this:
| Variety | Period | Bags | V + P | 
| P1 | M | 120 | P2 | 
| P2 | M | 159 | P2 | 
| P3 | M | 101 | P2 | 
| P4 | P | 90 | P5 | 
| P5 | P | 95 | P5 | 
Solved! Go to Solution.
Hello @jobf,
You can use below DAX formula.
"
Kind Regards,
Gökberk Uzuntaş
📌 If this post helps, then please consider Accepting it as a solution and giving Kudos — it helps other members find answers faster!
🔗 Stay Connected:
📘 Medium |
📺 YouTube |
💼 LinkedIn |
📷 Instagram |
🐦 X |
👽 Reddit |
🌐 Website |
🎵 TikTok |
you can try this
Proud to be a Super User!
Hi,
Write this calculated column formula
Column = LOOKUPVALUE(Data[Variety],Data[Bags],CALCULATE(MAX(Data[Bags]),FILTER(Data,Data[Period]=EARLIER(Data[Period]))),Data[Period],Data[Period])
Hope this helps.
you can try this
Proud to be a Super User!
Hello @jobf,
You can use below DAX formula.
"
Kind Regards,
Gökberk Uzuntaş
📌 If this post helps, then please consider Accepting it as a solution and giving Kudos — it helps other members find answers faster!
🔗 Stay Connected:
📘 Medium |
📺 YouTube |
💼 LinkedIn |
📷 Instagram |
🐦 X |
👽 Reddit |
🌐 Website |
🎵 TikTok |
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.