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

Total Sales of Monthly data

Hello!

 

I am looking for some help.

 

My data is monthly instead of daily values. I want the total sales in each row, but I am just getting the same sales value:

 

Coreyimhaus_0-1705413904711.png

Total Sales Value = calculate(SUM('Table'[Sales]),ALL('Table'[Customer]))

 

What I want is:

Total Sales Value  18, 18, 18.

 

Here is my database table: 

DateSalesCustomer

01.01.20205Kevin
01.02.20206Devin
01.03.20207Levin

 

ie January, February, March.

 

It works when I am using daily sales values, but unfortunately the sales value for this project is only monthly. What can I do? Should I rebuild my database somehow? Sorry if this is too easy of a question, but I´ve read the documentation and cannot find out what is different with using monthly data.

 

Thank you

 

Corey

 

 

1 ACCEPTED SOLUTION
Dangar332
Super User
Super User

hi, @Anonymous 

 

try below measure

Total Sales Value = CALCULATE(SUM('Table'[Sales]),ALLEXCEPT('Table','Table'[DateSalesCustomer]))

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi  @Anonymous ,

 

Here are the steps you can follow:

1. Create measure.

Measure =
var _sum=
CALCULATE(
    SUM('Table'[Sales]),ALL('Table'))
return
SUMX(
    VALUES('Table'),_sum)

2. Result:

vyangliumsft_0-1705474706965.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

Dangar332
Super User
Super User

hi, @Anonymous 

 

try below measure

Total Sales Value = CALCULATE(SUM('Table'[Sales]),ALLEXCEPT('Table','Table'[DateSalesCustomer]))

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.