We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now
I have a trending table and here is a sample data
Date Key
1/27/2019 1
1/27/2019 2
2/27/2019 1
2/27/2019 2
3/27/2019 1
3/27/2019 1
My goal is to find the "Key" that has COUNT>1 in the latest date i.e. Key=1 should be outputed since it appeard twice in 3/1/2019
My logic is to create a calculated column
1- First filter the table to only inlcude latest date records
2- Use Earlier function to get the ones that has more than one records in that filtered table
Solved! Go to Solution.
Hi @Anonymous
If there's only one key with count > 1 for the last date, you can create a measure and place it in a card visual:
Measure =
CALCULATE (
DISTINCT ( Table1[Key] ),
FILTER (
Table1,
CALCULATE ( COUNT ( Table1[Key] ) ) > 1 && Table1[Date] = MAX ( Table1[Date] )
)
)
Please mark the question solved when done and consider giving kudos if posts are helpful.
Cheers ![]()
Hi @Anonymous
If there's only one key with count > 1 for the last date, you can create a measure and place it in a card visual:
Measure =
CALCULATE (
DISTINCT ( Table1[Key] ),
FILTER (
Table1,
CALCULATE ( COUNT ( Table1[Key] ) ) > 1 && Table1[Date] = MAX ( Table1[Date] )
)
)
Please mark the question solved when done and consider giving kudos if posts are helpful.
Cheers ![]()
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 57 | |
| 38 | |
| 32 | |
| 18 | |
| 16 |
| User | Count |
|---|---|
| 66 | |
| 66 | |
| 40 | |
| 34 | |
| 25 |