Skip to main content
Announcements
Accelerate Your Success: Fuel your data and AI journey with the right services, delivered by our experts. Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
takama13
Contributor II
Contributor II

Limit the number of a specific value in a Dimension

Hi,

I have a table in which I would like to limit the number of a specific value :

takama13_0-1679678196885.png

I would like to limit the number of "Completed" to the last 2 events/records, per service.

I don't want the value "in Progress" to be limited.

Is there a way to do this ?

 

Thanks

Labels (1)
1 Solution

Accepted Solutions
vinieme12
Champion III
Champion III

best option is to  flag the last 2 records during data load, can you post some sample data the best represents your actual data

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.

View solution in original post

4 Replies
vikasmahajan

Hi,

Simply try following 

Count({<Staus = {'Completed'}} >}   Mesure )

Thanks

Vikas

Hope this resolve your issue.
If the issue is solved please mark the answer with Accept as Solution & like it.
If you want to go quickly, go alone. If you want to go far, go together.
takama13
Contributor II
Contributor II
Author

Hi Vikas,

Thanks for your reply but I'm not sure where you want me to add this expression ?

vinieme12
Champion III
Champion III

best option is to  flag the last 2 records during data load, can you post some sample data the best represents your actual data

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.
takama13
Contributor II
Contributor II
Author

That's what I finally did, thanks.