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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
cristianml
Post Prodigy
Post Prodigy

SumIf depending of a column

Hi,

I need to calculate like a Sumif but depending of a column. See example below.

Table1

cristianml_0-1643948266045.png

How can I do this ? by measure or calculated column ?

 

Thanks !

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@cristianml ,

 

Sumx(filter(allselected(Table), Table[Qtr] = max(Table[Qtr]) ) , Table[Value])

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

2 REPLIES 2
Tahreem24
Super User
Super User

@cristianml Try the below DAX measure:

MEASURE = CALCULATE(SUM(TableName[ValueColumn]),ALLEXCEPT(TableName,TableName[QuarterColumn]))

 

Don't forget to give thumbs up and accept this as a solution if it helped you!!!

Please take a quick glance at newly created dashboards : Restaurant Management Dashboard , HR Analytics Report , Hotel Management Report, Sales Analysis Report , Fortune 500 Companies Analysis , Revenue Tracking Dashboard
amitchandak
Super User
Super User

@cristianml ,

 

Sumx(filter(allselected(Table), Table[Qtr] = max(Table[Qtr]) ) , Table[Value])

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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!

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 Kudoed Authors