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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Thiagops
Helper II
Helper II

Total Sales for the current month

Good morning,
In the formula below, the intention is to add all the sales of the current month, however the result is not correct. It should be 291,241.28, but it's only pulling 114.41k

Total GERAL de vendas do mes atual =
CALCULATE(
    SUM(NF_SAIDA[NS_TOTAL_NOTA]),
    NF_SAIDA[NS_DATA_EMISSAO] > EOMONTH(TODAY(),-1),
    ALL(NF_SAIDA)
)
 
Can anyone help me find the error?
1 ACCEPTED SOLUTION
tamerj1
Super User
Super User

HI @Thiagops 

It should work. Check:
1. The data type of the [NS_TOTAL_NOTA] column and confirm it it is DateTime data type.

2. Check for blanks in the column.

3. Check the date regional format (dd/mm/yyyy or mm/dd/yyy)

View solution in original post

1 REPLY 1
tamerj1
Super User
Super User

HI @Thiagops 

It should work. Check:
1. The data type of the [NS_TOTAL_NOTA] column and confirm it it is DateTime data type.

2. Check for blanks in the column.

3. Check the date regional format (dd/mm/yyyy or mm/dd/yyy)

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!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

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