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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
gohawks3
New Member

How to customize X-axis of Power BI Dashboard?

I want to show on Power BI Dashboard a moving average - for example, I want to always show real-time the last 30 measurement of body temperature but it looks like Power BI dashboard shows all measurements I have and compress them - which makes the dashboard ugly. I tried to customize the X-axis properties but I dont know what I should change the default start/stop properties to (where the default property value is automatic).

 

Thanks!

Chu

 

2 REPLIES 2
Greg_Deckler
Community Champion
Community Champion

In your data model, add a caculated column:

 

=DATEDIFF([date],TODAY(),DAY)

 

[date] is your datetime column in your data set.

 

Then, just add a filter based on this new column in your visualization so that it is greater than or less than some number that you like. Bingo, rolling date x-axis.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...
Seth_C_Bauer
Community Champion
Community Champion

@gohawks3

Can you accomplish this by using filtering... It sounds like you already know your last 30, so either use an existing column or create a calculated column and filter by where field is greater or = 30


Looking for more Power BI tips, tricks & tools? Check out PowerBI.tips the site I co-own with Mike Carlo. Also, if you are near SE WI? Join our PUG Milwaukee Brew City PUG

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 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.