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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
ahmoh43
New Member

weekly running total

ahmoh43_0-1712050101931.png

I want to make weekly trend as monthly trend 

1 ACCEPTED SOLUTION
v-xinruzhu-msft
Community Support
Community Support

Hi @ahmoh43 

Thanks for the solution @MFelix  provided, and i want to offer some information for you to refer to.

Sample data

vxinruzhumsft_0-1712294200734.png

 

 

Create a measure.

 

MEASURE =
CALCULATE (
    SUM ( 'Table'[Value] ),
    ALLSELECTED ( 'Table' ),
    'Table'[WeekNo] <= MAX ( 'Table'[WeekNo] )
)

 

Then put the  the measure to the y-axis.

Output

vxinruzhumsft_0-1713427741577.png

 

 

Best Regards!

Yolo Zhu

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

 

 

 

 

View solution in original post

2 REPLIES 2
v-xinruzhu-msft
Community Support
Community Support

Hi @ahmoh43 

Thanks for the solution @MFelix  provided, and i want to offer some information for you to refer to.

Sample data

vxinruzhumsft_0-1712294200734.png

 

 

Create a measure.

 

MEASURE =
CALCULATE (
    SUM ( 'Table'[Value] ),
    ALLSELECTED ( 'Table' ),
    'Table'[WeekNo] <= MAX ( 'Table'[WeekNo] )
)

 

Then put the  the measure to the y-axis.

Output

vxinruzhumsft_0-1713427741577.png

 

 

Best Regards!

Yolo Zhu

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

 

 

 

 

MFelix
Super User
Super User

Hi @ahmoh43,

 

For this you need to create a cummulative measure that will allow to have the calculation for each week.

 

You can do a measure similar to this one:

Weekly Cumulative = CALCULATE (SUM(Table[Column]), Table[Week] >= MAX(Table[Week]))

Be aware that I'm assuming that you are only selecting a specific year for the visualization of the chart.

 


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



Helpful resources

Announcements
PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

Top Solution Authors
Top Kudoed Authors