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
LD
Frequent Visitor

Sum Value per Months

Dear All,

I have two database with:

 

First is

Date [Start Date] --- [AAA] (that is a Value) 

Second is

Date [Month] ---- [YTD_IN/OUT]

 

I would like to have in [YTD_IN/OUT] the sum of [AAA] clusterized per Month ([Month]=[Start Date]), so I have:

"YTD_IN/OUT",CALCULATE(SUM('IN/OUT'[AAA]),

FILTER (
ALL('IN/OUT'[Start Date]),
'IN/OUT'[Start Date] <= MAX(projection[Month])
 
But the formula sum the previuos Months too.
 
Please, How i can Solve?
 
Thank you
 
LD
1 ACCEPTED SOLUTION
LD
Frequent Visitor

Dear All,

 

I solved the point: 

 

the solution is:

CALCULATE(SUM('IN/OUT'[AAA]),

FILTER (
ALL('IN/OUT'[Start Date]),
'IN/OUT'[Start Date] <= LASTDATE(projection[Month])
 
LD

View solution in original post

3 REPLIES 3
LD
Frequent Visitor

Dear All,

 

I solved the point: 

 

the solution is:

CALCULATE(SUM('IN/OUT'[AAA]),

FILTER (
ALL('IN/OUT'[Start Date]),
'IN/OUT'[Start Date] <= LASTDATE(projection[Month])
 
LD
LD
Frequent Visitor

Hi, 
Thanks for your message. I think I have soleved the point 🙂

 

LD

v-zhangti
Community Support
Community Support

Hi, @LD 

 

Can you provide some sample data or simple pbix files? Sensitive information can be removed in advance. What kind of expected results do you expect? You can also show it with pictures. 

 

Best Regards,

Community Support Team _Charlotte

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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.