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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
Anonymous
Not applicable

Show last 15 days of data in stacked column chart?

I have a dataset with per-day data, and I would like to just show the last n days (e.g. 15) in the columns.  Here is a current example, but it is showing all of my data:

 

stacked.png

What is the trick to just show the most recent days? Thanks for the help!

1 ACCEPTED SOLUTION

Hi @Anonymous ,

 

Use a relative date slicer and filter in Power BI

https://docs.microsoft.com/en-us/power-bi/visuals/desktop-slicer-filter-date-range

 

Did I answer your question?
Please mark my post as solution, this will also help others.
Please give Kudos for support.

Marcus Wegener works as Full Stack Power BI Engineer at BI or DIE.
His mission is clear: "Get the most out of data, with Power BI."
twitter - LinkedIn - YouTube - website - podcast


View solution in original post

3 REPLIES 3
v-yuta-msft
Community Support
Community Support

@Anonymous ,

 

The relative date slicer or filter can meet your requirement, please refer to doc below:

https://docs.microsoft.com/en-us/power-bi/visuals/desktop-slicer-filter-date-range

 

Community Support Team _ Jimmy Tao

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

Hi @Anonymous ,

 

Use a relative date slicer and filter in Power BI

https://docs.microsoft.com/en-us/power-bi/visuals/desktop-slicer-filter-date-range

 

Did I answer your question?
Please mark my post as solution, this will also help others.
Please give Kudos for support.

Marcus Wegener works as Full Stack Power BI Engineer at BI or DIE.
His mission is clear: "Get the most out of data, with Power BI."
twitter - LinkedIn - YouTube - website - podcast


camargos88
Community Champion
Community Champion

Hi @Anonymous ,

 

You can create a column on your table like:

 

IF(TODAY - DATECOLUMN <= 15; 1; 0)

 

and filter the results using this new column.

 

Ricardo



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

Proud to be a Super User!



Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

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

PBI_Carousel_NL_June

Fabric Community Update - June 2024

Get the latest Fabric updates from Build 2024, key Skills Challenge voucher deadlines, top blogs, forum posts, and product ideas.

Top Solution Authors