March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Hi all,
I had a question regarding making a calculation that has to be performed on every record in a column.
My data looks like this
X |
7 |
29 |
7 |
82 |
118 |
Now what I want is for every row to be substracted by 5. With outcome like:
X |
2 |
24 |
2 |
77 |
113 |
Is it best to do this through a calculated column ?
Thanks in advance,
L.Meijdam
Solved! Go to Solution.
It depends.
If you want to keep the original values, you can either add a custom column in Power Query or a calculated column in DAX.
If you want to transform the values, you can use Power Query: Edit Queries - Transform - Standard - Subtract - 5.
It depends.
If you want to keep the original values, you can either add a custom column in Power Query or a calculated column in DAX.
If you want to transform the values, you can use Power Query: Edit Queries - Transform - Standard - Subtract - 5.
Hi @MarcelBeug,
Since I prefered a DAX solution here I created a calculated column to achieve it. Thanks for sharing your insights with me.
Regards,
L.Meijdam
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
133 | |
91 | |
88 | |
64 | |
58 |
User | Count |
---|---|
201 | |
137 | |
107 | |
73 | |
68 |