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 everyone,
i have created a variable tabel inside a measure and need to pull column1 value based on maxium value in column 2. However i can't seem to find a function that will pull or look up a value from a variable table as the table does not really exists. it is only summarized inside the measure.
Basically in the formula below, i need to pull the DOW value where [count] is maximum
not sure if i fully get you.
Supposing your table like this:
DOW |
1/1/2023 |
1/2/2023 |
1/2/2023 |
1/3/2023 |
1/3/2023 |
1/3/2023 |
then try to plot a measure like this:
Measure =
VAR _table =
ADDCOLUMNS(
VALUES(TableName[DOW]),
"Count",
CALCULATE(COUNTROWS(TableName))
)
VAR _countmax = MAXX(_table, [Count])
RETURN
MINX(
FILTER(_table, [Count] = _countmax),
[DOW]
)
it worked like:
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
21 | |
14 | |
11 | |
8 | |
5 |
User | Count |
---|---|
26 | |
21 | |
20 | |
14 | |
10 |