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
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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.