Don't miss your chance to take exam DP-600 or DP-700 on us!
Request nowLearn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
Hi,
I was looking into a problem where i need to find the when one column in the data was changed in the table.
Example-
Date Column1 column2
1/1/2021 123 A
2/2/2021 123 A
3/2/2021 123 B
4/2/2021 123 B
1/2/2021 456 A
2/2/2021 456 B
3/2/2021 456 B
So for the above example i am looking for a way to find the date the column2 data was changed.
Like create new column3 filled with 1 at row 3 and 6
Thanks for the help.
Solved! Go to Solution.
Here is a column expression that gets that result. I called the table "Change" so replace that with your actual table name.
Change From Previous =
VAR vThisDate = Change[Date]
VAR vPrevDate =
CALCULATE (
MAX ( Change[Date] ),
ALLEXCEPT (
Change,
Change[ Column1]
),
Change[Date] < vThisDate
)
VAR vCurrent = Change[Column2]
VAR vPrevValue =
CALCULATE (
MIN ( Change[Column2] ),
ALLEXCEPT (
Change,
Change[ Column1]
),
Change[Date] = vPrevDate
)
RETURN
IF (
OR (
ISBLANK ( vPrevDate ),
vCurrent = vPrevValue
),
0,
1
)
Pat
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
Thanks for the help Pat
Here is a column expression that gets that result. I called the table "Change" so replace that with your actual table name.
Change From Previous =
VAR vThisDate = Change[Date]
VAR vPrevDate =
CALCULATE (
MAX ( Change[Date] ),
ALLEXCEPT (
Change,
Change[ Column1]
),
Change[Date] < vThisDate
)
VAR vCurrent = Change[Column2]
VAR vPrevValue =
CALCULATE (
MIN ( Change[Column2] ),
ALLEXCEPT (
Change,
Change[ Column1]
),
Change[Date] = vPrevDate
)
RETURN
IF (
OR (
ISBLANK ( vPrevDate ),
vCurrent = vPrevValue
),
0,
1
)
Pat
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Check out the February 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 50 | |
| 40 | |
| 37 | |
| 14 | |
| 14 |
| User | Count |
|---|---|
| 85 | |
| 69 | |
| 37 | |
| 29 | |
| 27 |