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.
All Hi,
I am new to Power Bi.
I have the following data:
id | date | channel | Result |
1 | 1/1/2019 | A | I |
1 | 1/2/2019 | B | J |
1 | 1/3/2019 | C | K |
3 | 1/3/2019 | A | I |
4 | 1/4/2019 | B | K |
4 | 1/5/2019 | C | J |
Assume that there is a slicer that contains the column date.
Is there any way to get the entire row for each ID where date is the latest, and then slice by field Channel? Using the following measure i am able to calculate the distinct id's based on the date slicer.
Is there any way to keep the records where the date is the latest, and then slice by another field ?
Appreciate your feedback.
Regards,
Xenofon
Solved! Go to Solution.
Hi @Fon
You may create a rank measure and use it in visual level filter like below.
Rank = RANKX ( FILTER ( ALL ( 'Table' ), 'Table'[id] = MAX ( 'Table'[id] ) ), CALCULATE ( MAX ( 'Table'[date] ) ), , DESC )
Regards,
Hi @Fon
You may create a rank measure and use it in visual level filter like below.
Rank = RANKX ( FILTER ( ALL ( 'Table' ), 'Table'[id] = MAX ( 'Table'[id] ) ), CALCULATE ( MAX ( 'Table'[date] ) ), , DESC )
Regards,
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
109 | |
98 | |
80 | |
64 | |
57 |
User | Count |
---|---|
145 | |
111 | |
92 | |
84 | |
66 |