March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Hi,
I have a table and I want to do it, how can I do it in DAX
Now:
Future:
Thanks!
Solved! Go to Solution.
please try
Column1 =
MAXX (
FILTER (
CALCULATETABLE ( 'Table', ALLEXCEPT ( 'Table', 'Table'[ExecutionReference] ) ),
'Table'[DataKey] IN { "HP", "GAF" }
),
'Table'[DataKey]
)
ExecutionReference doesn't make sense, what if you sort that column.
I mean why "GAF" not "Caudal" for example? Based on what? Or you have a list of the Key values that need to be kept?
please try
Column1 =
MAXX (
FILTER (
CALCULATETABLE ( 'Table', ALLEXCEPT ( 'Table', 'Table'[ExecutionReference] ) ),
'Table'[DataKey] IN { "HP", "GAF" }
),
'Table'[DataKey]
)
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
User | Count |
---|---|
25 | |
17 | |
16 | |
12 | |
11 |
User | Count |
---|---|
39 | |
29 | |
27 | |
20 | |
18 |