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
Hello everyone.
My dataset is as follows
Server_name Number_of_licenses
------------------------------------------
Server1 1800
Server2 null
Server3 null
Server4 200
Server5 null
Server6 650
Server7 1120
What I have been trying to achieve is replace the null with the value right above, by dividing "value" to the number of nulls right below + 1. Also, the "value" should be replace with the result of the division.
For instance, the nulls below 1800 should be replaced by 600 (1800/3) and 1800 itself should also be replaced with 600.
The dataset after applying the formula should be:
Server_name Number_of_licenses
------------------------------------------
Server1 600
Server2 600
Server3 600
Server4 100
Server5 100
Server6 650
Server7 1120
Any ideas on how can I achieve this? I've been trying for some days already and I don't see any solution to this.
Thanks in advance.
Vlad
Solved! Go to Solution.
Hi @Anonymous ,
First create a calculated column for ranking:
Hi @Anonymous ,
First create a calculated column for ranking:
User | Count |
---|---|
120 | |
77 | |
58 | |
52 | |
46 |
User | Count |
---|---|
171 | |
117 | |
63 | |
57 | |
51 |