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

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.

Reply
Mery
Frequent Visitor

Sum Volume of first occurrence of column

I have this table and i need to calculate the sum of f_Population-ActiviteHab.Volume for each first occurrence of Durre column.

result = 423+2052+504

i tried this formula 

SUMX(DISTINCT('f_PresenceJournee-ActiviteHab'[Duree]); FIRSTNONBLANK('f_PresenceJournee-ActiviteHab'[f_Population-ActiviteHab.Volume]; 0))
but it doesn't work!

Capture.PNG

1 REPLY 1
harshnathani
Community Champion
Community Champion

HI @Mery ,

 

Try this

 

SUMX(DISTINCT('f_PresenceJournee-ActiviteHab'; FIRSTNONBLANKVALUE('f_PresenceJournee-ActiviteHab'[Date]; MAX(f_PresenceJournee-ActiviteHab'[f_Population-ActiviteHab.Volume]))

 

or

 

 

SUMX('f_PresenceJournee-ActiviteHab'; FIRSTNONBLANKVALUE('f_PresenceJournee-ActiviteHab'[Date]; SUM(f_PresenceJournee-ActiviteHab'[f_Population-ActiviteHab.Volume]))

 

Regards,

Harsh Nathani

Helpful resources

Announcements
October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.