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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register 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
v-yangliu-msft
Community Support
Community Support

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.