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
Anonymous
Not applicable

Last X values

Hello

 

Is it possible to filter a visual so that it shows the last X values, where X could be 10 as an example?

 

Lets say I have the following visual:

Capture.PNG

It currently shows the last 30 days, but I would like for it to show the last 10 observations instead.

How can I do this?

 

Thanks

1 ACCEPTED SOLUTION
4 REPLIES 4
tex628
Community Champion
Community Champion

To do that you will need to create a calculated column to rank the observations in order of most recent. What exactly is an observation in your scenario? 

/ J


Connect on LinkedIn
Anonymous
Not applicable

@tex628 

 

I am running a robot.

The robot performs a transaction. The time it does this is saved as "transactionStart" and is in the date and time format: 16-04-2020 08:09:30.

Once done, the transaction gets a status depending on the outcome of the run. This can either be "Successful", "App. Exception" or "Bus. Exception" as shown in the previous picture.

 

Try something like like.

 

1^(1/(MAX('Table'[TransactionStart]) - [TransactionStart]) * 1.)

 

Your top 10 numbers (TOPN filter) are the the ones to display.

 

Or, don't bother with a new column at all, just use TOPN filter on your TransactionStart column or a column with formula [TransactionStart] * 1.


@ 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!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

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.