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 Guys,
I have 2 Datasets, whose sample is provided below
i am trying to create a calculated column in table1, looking for Country from Table 2,
if there are multiple values expected, it should return country with earliest Date
I have created the column with following dax
Name Email Country
A Email1 AU
B Email2 AQ
C Email3 AW
A Email4 AD
B Email5 AS
However my original dataset is much larger and when i am applying this calculated column, i am getting error as
"There isnt enough memory to complete this Operation, please try again later"
Is there any other Dax functions i can use to get the above lookup values?
Please suggest
Solved! Go to Solution.
@Anonymous , create a new column in Table
new column =
var _min = minx(filter(Table2,table2[email] =table[email] ), table2[date])
return
minx(filter(Table2,table2[email] =table[email] && Table2[Date]=_min), table2[Country])
@Anonymous , create a new column in Table
new column =
var _min = minx(filter(Table2,table2[email] =table[email] ), table2[date])
return
minx(filter(Table2,table2[email] =table[email] && Table2[Date]=_min), table2[Country])
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 46 | |
| 42 | |
| 34 | |
| 31 | |
| 21 |
| User | Count |
|---|---|
| 133 | |
| 126 | |
| 95 | |
| 80 | |
| 65 |