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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Rapports
Helper I
Helper I

SUM with filter

Hello, 

Please I have a problem to do the sum of seance planified by filiere can you please help me to create a mesure for that ? 

Rapports_0-1699368429727.png

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi  @Rapports ,

 

Create measure.

If you want to calculate the full sum based on filtering, you can use the following function:

Measure =
SUMX(
    ALLSELECTED('Table'),'Table'[SeancePlanified])

vyangliumsft_0-1699587101746.png

If you want to calculate the sum of the groupings based on filtering, you can use the following function:

Measure2 =
SUMX(
   FILTER( ALLSELECTED('Table'),'Table'[filiere]=MAX('Table'[filiere])),'Table'[SeancePlanified])

vyangliumsft_1-1699587101752.png

 

Best Regards,

Liu Yang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Hi  @Rapports ,

 

Create measure.

If you want to calculate the full sum based on filtering, you can use the following function:

Measure =
SUMX(
    ALLSELECTED('Table'),'Table'[SeancePlanified])

vyangliumsft_0-1699587101746.png

If you want to calculate the sum of the groupings based on filtering, you can use the following function:

Measure2 =
SUMX(
   FILTER( ALLSELECTED('Table'),'Table'[filiere]=MAX('Table'[filiere])),'Table'[SeancePlanified])

vyangliumsft_1-1699587101752.png

 

Best Regards,

Liu Yang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

PijushRoy
Super User
Super User

Sorry @Rapports 
The requirement is not clear to me, can you please share shreenshot for your output. 
You can try below DAX
=CALCULATE(
                  SUM(
                          Column Name
                  ),
                 Filter(
                 Table Name,
                 Column Name)
)





Did I answer your question? Mark my post as a solution!
Appreciate your Like/Kudos

Proud to be a Super User!





I want that when i filter by INFORMATIQUE APPLIQUEE 23-24 for exemple it give me the total of seance planified 13+26+22+28=89 

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

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.

Top Solution Authors
Top Kudoed Authors