Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
I have data starting 1st Jan 2022 with persons name and date.
I am looking for something similar to last 10 days, but instead of this, I need something that shows the last 10 activity of the person, rather than last 10 days, which only provides data from last 10 days.
Is there any DAX formulas that allow to show last 10 actions?
Solved! Go to Solution.
Hi, @Anonymous
You can add a Rank filed using the following DAX:
Rank = RANKX( ALLEXCEPT('Table', 'Table'[Name]),CALCULATE(MAX('Table'[Date])),, DESC)
Then set a visual level filter to the Rank measure.
Reference:
Keep top N row for each "category"
Best Regards,
Community Support Team _ Eason
This provides what I am needing, but this does not appear to take effect on other visuals when a person is selected.
I would hope to not only see last 10 on table, but also to show 10 on graph, were it apears to be showing everything, assuming because filter is on visual, but does not let me apply to Page or All pages.
Hi, @Anonymous
You can add a Rank filed using the following DAX:
Rank = RANKX( ALLEXCEPT('Table', 'Table'[Name]),CALCULATE(MAX('Table'[Date])),, DESC)
Then set a visual level filter to the Rank measure.
Reference:
Keep top N row for each "category"
Best Regards,
Community Support Team _ Eason
User | Count |
---|---|
101 | |
90 | |
78 | |
70 | |
69 |
User | Count |
---|---|
110 | |
96 | |
95 | |
74 | |
71 |