Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin 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.
Hi all
I need to create a column (power bi desktop -> power query -> custom column) with the minimum date based on the content of another column. here what I have and what I wish
| ITEM | Data_check | Event | NEW_COLUMN |
| ITEM_01 | 31/03/2022 | Event_04 | 31/03/2022 |
| ITEM_01 | 20/06/2022 | Event_04 | 31/03/2022 |
| ITEM_01 | 20/09/2022 | Event_04 | 31/03/2022 |
| ITEM_01 | 20/12/2022 | Event_04 | 31/03/2022 |
| ITEM_01 | 30/03/2023 | Event_04 | 31/03/2022 |
| ITEM_01 | 20/06/2023 | Event_04 | 31/03/2022 |
| ITEM_01 | 20/09/2023 | Event_04 | 31/03/2022 |
| ITEM_01 | 20/12/2023 | Event_04 | 31/03/2022 |
| ITEM_01 | 20/03/2024 | Event_04 | 31/03/2022 |
| ITEM_01 | 20/06/2024 | Event_04 | 31/03/2022 |
| ITEM_01 | 20/09/2024 | Event_04 | 31/03/2022 |
| ITEM_01 | 20/12/2024 | Event_04 | 31/03/2022 |
| ITEM_01 | 20/03/2025 | Event_04 | 31/03/2022 |
| ITEM_01 | 20/06/2025 | Event_04 | 31/03/2022 |
| ITEM_01 | 22/09/2025 | Event_04 | 31/03/2022 |
| ITEM_01 | 22/12/2025 | Event_02 | 31/03/2022 |
| ITEM_02 | 23/08/2022 | Event_03 | 23/08/2022 |
| ITEM_02 | 23/08/2022 | Event_03 | 23/08/2022 |
| ITEM_02 | 23/08/2023 | Event_03 | 23/08/2022 |
| ITEM_02 | 23/08/2024 | Event_03 | 23/08/2022 |
| ITEM_02 | 25/08/2025 | Event_03 | 23/08/2022 |
| ITEM_02 | 24/08/2026 | Event_03 | 23/08/2022 |
| ITEM_02 | 30/08/2027 | Event_02 | 23/08/2022 |
| ITEM_03 | 23/05/2022 | Event_03 | 23/05/2022 |
| ITEM_03 | 22/05/2023 | Event_03 | 23/05/2022 |
| ITEM_03 | 21/05/2024 | Event_03 | 23/05/2022 |
| ITEM_03 | 21/05/2025 | Event_03 | 23/05/2022 |
| ITEM_03 | 21/05/2026 | Event_03 | 23/05/2022 |
| ITEM_03 | 28/05/2027 | Event_02 | 23/05/2022 |
tx for any help
Solved! Go to Solution.
measure = calculate(min(tbl[Data_check]),allexept(tbl,tbl[item]))
there's something wrong.
can you help me?
thank you
raffaele
@ironpink this is a DAX measure which is not to be used as POWER QUERY expression
so, how can I add a column here with the data above asked?
| User | Count |
|---|---|
| 76 | |
| 36 | |
| 31 | |
| 29 | |
| 26 |