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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Ankit777
Frequent Visitor

Show values in chart from year start to the selected month value

Hi

I have monthly sales data.

I am creating a line chart.

I also use month as filter.

When I select a month, I want graph to show me data from Jan onwards to selected value.

Please help.

Thanks

1 ACCEPTED SOLUTION
Eric_Zhang
Employee
Employee


@Ankit777 wrote:

Hi

I have monthly sales data.

I am creating a line chart.

I also use month as filter.

When I select a month, I want graph to show me data from Jan onwards to selected value.

Please help.

Thanks


@Ankit777

May I know why not using a date slicer to pick up a range?
Capture3.PNG

 

As to your question, a trick is to create a calculated table containing duplicated rows.

Capture6666.PNG

 

Capture.PNGCapture2.PNG

 

Check more details in the attached pbix file.

View solution in original post

1 REPLY 1
Eric_Zhang
Employee
Employee


@Ankit777 wrote:

Hi

I have monthly sales data.

I am creating a line chart.

I also use month as filter.

When I select a month, I want graph to show me data from Jan onwards to selected value.

Please help.

Thanks


@Ankit777

May I know why not using a date slicer to pick up a range?
Capture3.PNG

 

As to your question, a trick is to create a calculated table containing duplicated rows.

Capture6666.PNG

 

Capture.PNGCapture2.PNG

 

Check more details in the attached pbix file.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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