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.
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.
| startYear | endYear |
| 2017 | 2020 |
| 2001 | 2010 |
| 2018 | \N |
| 2013 | 2020 |
| 2001 | 2006 |
| 2011 | \N |
| 2017 | 2019 |
| 2009 | 2009 |
| 2003 | 2019 |
| 2012 | 2020 |
| 2021 | \N |
| 2016 | \N |
Solved! Go to Solution.
you can create a column.
Column = if('Table (2)'[endYear]="\N",blank(),int('Table (2)'[endYear])-'Table (2)'[startYear])
Proud to be a Super User!
you can create a column.
Column = if('Table (2)'[endYear]="\N",blank(),int('Table (2)'[endYear])-'Table (2)'[startYear])
Proud to be a Super User!
@ryan_mayu can you share the sample file in which you have implemented the scenario?
pls see the attachment below
Proud to be a Super User!
you are welcome
Proud to be a Super User!
@NidhiBhusari , 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
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 79 | |
| 38 | |
| 31 | |
| 27 | |
| 27 |