Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
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:
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
Check out the November 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 19 | |
| 10 | |
| 9 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 34 | |
| 32 | |
| 20 | |
| 12 | |
| 11 |