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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric 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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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

Top Kudoed Authors