Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Using 3 columns (Date, Name, This year asset), what DAX via "New column" (not via "New measure") would give me last year asset exactly as below? Please assume that 3 columns (Date, Name, This year asset) are all 'columns' too (not 'measures').
I want a New column named "Last year asset":
Last year asset = ?
Date | Name | This year asset | Last year asset |
7/10/2023 | Paul | $134 | $897 |
7/10/2022 | Paul | $897 | $965 |
7/10/2021 | Paul | $965 | n/a |
4/13/2021 | Tony | $322 | $468 |
4/13/2020 | Tony | $468 | n/a |
2/26/2024 | Christine | $230 | $763 |
2/26/2023 | Christine | $763 | $797 |
2/26/2022 | Christine | $797 | $865 |
2/26/2021 | Christine | $865 | n/a |
6/19/2023 | Bella | $983 | $142 |
6/19/2022 | Bella | $142 | $337 |
6/19/2021 | Bella | $337 | $47 |
6/19/2020 | Bella | $47 | n/a |
Solved! Go to Solution.
hello @junding9
please check if this accomodate your need.
Create a calculated column with following DAX:
Hope this will help you.
Thank you.
Expertise = List.Accumulate( {Days as from Today}, {Skills and Knowledge}, (Current, Everyday) => Current & Day.LeanAndPractise(Everyday) ) |
hello @junding9
please check if this accomodate your need.
Create a calculated column with following DAX:
Hope this will help you.
Thank you.
User | Count |
---|---|
20 | |
14 | |
11 | |
8 | |
6 |
User | Count |
---|---|
23 | |
23 | |
20 | |
15 | |
10 |