To reference the preceding value of a column while performing operations on columns in Power BI, you can use the DAX function called "PREVIOUVALUE()". This function returns the value of a column for the previous row in a table or column.
For example, if you want to calculate the difference between each row's value and the previous row's value for a column called "Sales", you could create a new column with the following DAX formula:
Sales Difference = [Sales] - PREVIOUSVALUE([Sales])
This will subtract the previous row's sales value from the current row's sales value, giving you the difference for each row.
Asked: 2022-06-12 11:00:00 +0000
Seen: 10 times
Last updated: Jan 30 '22