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
AlessandroBet
Helper V
Helper V

Filter a sum of column table

I have a table with several columns.

I need to calculate the sum of all the values of column "Price" but filtering the date "january" from other column

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@AlessandroBet 

Try like

calculate(sum(table[price]),format(Table[Date],"MMM")= "Jan")
calculate(sum(table[price]),format(Table[Date],"YYYYMM")= "202001")

 

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
amitchandak
Super User
Super User

@AlessandroBet 

Try like

calculate(sum(table[price]),format(Table[Date],"MMM")= "Jan")
calculate(sum(table[price]),format(Table[Date],"YYYYMM")= "202001")

 

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
az38
Community Champion
Community Champion

Hi @AlessandroBet 

smth like

CALCULATE(SUM('Table'[Price]), 'Table'[Date]="january" )

but correct answer depends on your data model and example


do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn

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.