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! Learn more

Reply
miikasa
Frequent Visitor

Problems with accumulated values

Hi guys,

 

I'm trying to calculate the accumulated values of the SalesIndex measure starting on February.

Here is what I have vs what I need:

 

What I have:

miikasa_0-1723834809194.png

 

What I need:

miikasa_1-1723834836299.png

 

And these are the measures:

SalesIndex = 

DIVIDE(

[SalesAmount], 
[AverageCurrentMonthPreviousMonth],

0

)

 

TotalSalesIndex =
    SUMX('Database',
    [SalesIndex])

 

 

AcumullatedSalesIndex =
CALCULATE(
    [TotalSalesIndex],
    'Calendar'[Date] <= MAX('Calendar'[Date]),
    YEAR('Calendar'[Date]) = YEAR(MAX('Calendar'[Date])) 
)
 
When I compare the AcumullatedSalesIndex, it is not accumulating the values of SalesIndex measure per month. Do you guys have any ideas on how to solve it?

Thank you very much.


1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @miikasa ,

 

I created some data:

vkaiyuemsft_0-1724911430323.png

 

vkaiyuemsft_1-1724911436930.png

 

Here are the steps you can follow:

 

1.Create calculated column.

Index = 
MINX(
    FILTER(ALL('Table 2'),
    'Table 2'[Month]=EARLIER('Table'[Month])),[Month_Number])

 

2.Create measure.

Measure = 
SUMX(
    FILTER(ALL('Table'),
    'Table'[Index]<=MAX('Table'[Index])),[SalesIndex])

 

3.Result:

vkaiyuemsft_2-1724911504258.png

If your Current Period does not refer to this, please clarify in a follow-up reply.

 

Best Regards,

Clara Gong

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

 

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Hi @miikasa ,

 

I created some data:

vkaiyuemsft_0-1724911430323.png

 

vkaiyuemsft_1-1724911436930.png

 

Here are the steps you can follow:

 

1.Create calculated column.

Index = 
MINX(
    FILTER(ALL('Table 2'),
    'Table 2'[Month]=EARLIER('Table'[Month])),[Month_Number])

 

2.Create measure.

Measure = 
SUMX(
    FILTER(ALL('Table'),
    'Table'[Index]<=MAX('Table'[Index])),[SalesIndex])

 

3.Result:

vkaiyuemsft_2-1724911504258.png

If your Current Period does not refer to this, please clarify in a follow-up reply.

 

Best Regards,

Clara Gong

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

 

Ashish_Mathur
Super User
Super User

Hi,

What do you mean by "starting on Feb"?

Assuming in a slicer, you hve selected a Year (dragged from the Calendar table) and the months are also dragged from the Calendar Table, write this measure

RT = calculate([salesindex],datesytd(calendar[date],"31/12"))

If this does not work, then share the download link of the PBI file.  Clearly show the problem there.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Greg_Deckler
Community Champion
Community Champion

@miikasa Yes. 

Better Running Total - Microsoft Fabric Community

Better Year to Date Total - Microsoft Fabric Community



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

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.

Top Solution Authors