Forum Discussion
NidhiBhusari
Helper IV
5 years agoDifference between two date values that are in text format.
Hello, I have two rows having year values named as START YEAR and END YEAR. But these values are in text format. Can anybody please help me in calculating difference between these two values. ...
- 5 years ago
you can create a column.
Column = if('Table (2)'[endYear]="\N",blank(),int('Table (2)'[endYear])-'Table (2)'[startYear])
amitchandak
Super User
5 years agoNidhiBhusari , In power query you have the option to clean the data, use that that will remove \N (return),
Then change the data type to text and try.
Under data tranform -(power query) -> Tranform tab -> clean