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

Get certified in Microsoft Fabric—for free! For a limited time, the Microsoft Fabric Community team will be offering free DP-600 exam vouchers. Prepare now

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
OCT PBI Update Carousel

Power BI Monthly Update - October 2024

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

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

October NL Carousel

Fabric Community Update - October 2024

Find out what's new and trending in the Fabric Community.