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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

SUM where multiple values

Hi, 

 

I need to create a calculation whereby I need to sum a value (fact_comp.value) where date.currmonth_offset is in (0, -1, -1, -3, -4, -5, -6, -7, -8, -9, -10, -11, -12, -13)

 

Any idea how I would write out the Dax for this, please?

 

1 ACCEPTED SOLUTION
selimovd
Super User
Super User

Hey @Anonymous ,

 

sure, you can use that as filter arguments in CALCULATE:

Sum of Value =
CALCULATE (
    SUM ( fact_comp[value] ),
    date[currmonth_offset] IN { 0, -1, -1, -3, -4, -5, -6, -7, -8, -9, -10, -11, -12, -13 }
)

If you need any help please let me know.
If I answered your question I would be happy if you could mark my post as a solution ✔️ and give it a thumbs up 👍

Best regards
Denis

Blog: WhatTheFact.bi
Follow me: twitter.com/DenSelimovic
 

View solution in original post

1 REPLY 1
selimovd
Super User
Super User

Hey @Anonymous ,

 

sure, you can use that as filter arguments in CALCULATE:

Sum of Value =
CALCULATE (
    SUM ( fact_comp[value] ),
    date[currmonth_offset] IN { 0, -1, -1, -3, -4, -5, -6, -7, -8, -9, -10, -11, -12, -13 }
)

If you need any help please let me know.
If I answered your question I would be happy if you could mark my post as a solution ✔️ and give it a thumbs up 👍

Best regards
Denis

Blog: WhatTheFact.bi
Follow me: twitter.com/DenSelimovic
 

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors
Top Kudoed Authors