Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hello,
Kind of a unique situation in which I'll do my best to explain.
Situation: Our Opportunities have cases. An opportunity can have multiple cases opened at any time. We'd like to capture ONLY the 1st case so looking at a month by month view, you wouldn't see the amount duplicated.
Example:
As you can see, the built in logic works in a table view, but it does not when looking month over month so when our users add up the month over month totals, it doesn't tie with the total. Is there a way to create a measure (again, we can't create a calculated column) that would just show the amount in Nov? We want to capture the first occurrence of this opportunity number only.
Thank you.
Solved! Go to Solution.
Hi @diannedentice ,
You need to create a measure similar to this one:
Measure = CALCULATE(FIRSTNONBLANK('Table'[AmountUSD]; SUM('Table'[AmountUSD])); ALLSELECTED('Table'[Oportunity number]))
Be aware that the last part ALLSELECTED may need to be changed based on your data to a filter or something similar.
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em Português@diannedentice
You can just select earliest date in the fields panel, no need to create a measure.
Paul Zheng _ Community Support Team
If this post helps, please Accept it as the solution to help the other members find it more quickly.
Hi @diannedentice ,
You need to create a measure similar to this one:
Measure = CALCULATE(FIRSTNONBLANK('Table'[AmountUSD]; SUM('Table'[AmountUSD])); ALLSELECTED('Table'[Oportunity number]))
Be aware that the last part ALLSELECTED may need to be changed based on your data to a filter or something similar.
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsCheck out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!