cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
shb
Frequent Visitor

TopN DateTime column values

Hi,

 

I have a dataset with DateTime and Reading (int) columns. I want to show the readings over the time axis as a line graph but only for last 50 datetime values as the data is too large to show in the line graph and the user is only interested to see last 50 values. I am not sure if I can use the RANKX function as follows? This does not work as it ask to provide some aggregate function around datetime field that I am not sure which one should it be. 

 

Rank = RANKX(ALL(DatasetName), DatasetName[Datetime])  

 

Could you please suggest any alternative to achieve the above?

2 REPLIES 2
Eric_Zhang
Microsoft
Microsoft

@shb

 

You can set TOPN filter, see attached sample.

Capture.PNG

shb
Frequent Visitor

Thanks @Eric_Zhang For some reason this filter was not working on the real-time streaming dataset (on datetime field), it doesn't return anything. But for static dataset the filter does work fine. Do you know why it wouldn't work on the streaming data? Thanks

Helpful resources

Announcements
PBI User Groups

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

Top Kudoed Authors