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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. 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
June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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