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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors