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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
ManishShetty
Frequent Visitor

Sum of Sales in Line chart until the week selected in the Date slicer

Hi,

 

I'm creating a sales dashboard with visual cards and line chart based on the FiscalYearWeek selection in a dropdown. I'm having trouble with making the line chart work with the type of week slicer that I'm using. 

 

ManishShetty_0-1679601420021.png

 

I want to keep the slicer dropdown values in this format.

 

When I try to display the total sales in a linechart until the (last day of) selected week, it appears as a single dot for that specific week instead of summing the sales from the first day of the year to the week selected. 

ManishShetty_1-1679601689824.png

 

 

This is how I want it to function: weeknumber 5 is selected within the Week slicer. The line-chart should display the cumulative sum of sales until week 5.

 

 

I'm trying to avoid using hierarchy as it doesn't display the week chosen by the user correctly when there are multiple selections.

 

ManishShetty_0-1679601914603.png

 

Any suggestions as to how to make this work?

 

Thanks in advance!

2 REPLIES 2
Ashish_Mathur
Super User
Super User

Hi,

I am not sure of how much i can help but i would like to try.  Share the download link of the PBI file.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
amitchandak
Super User
Super User

@ManishShetty , when you select one date/period and want to display more than that you need an independent date table for slicer

 

You can use date of Yearweek (yyyyww format)

 

//Date1 is independent Date table, Date is joined with Table
new measure =
var _max = maxx(allselected(Date1),Date1[Date])
return
calculate( sum(Table[Value]), filter('Date', 'Date'[Date] <=_max))

 

 

Need of an Independent Date Table:https://www.youtube.com/watch?v=44fGGmg9fHI

 

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors