Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!
Name | RESULT |
AA | |
AA | |
1 | |
BB | |
BB | |
2 | |
2 | |
BB | |
BB |
I am looking for a calculated column for empty cells in the "Name" Column that should return "1" in result column if the previous value in "Name" Column is not equal and if equal it should return "2" in the result column.
For Example, in the above table, row 3 in the Name Column is empty and row 2 in the Name column is "AA" and row 4 in Name Column is "BB" so it should return "1" in the result column. Because "AA" and "BB" are different.
Row 6 & 7 in the Name Column are also empty, but the Name Column value in row 5 and 8 are equal so it should return as "2" in row 6 & 7 in the result column.
You are going to need an Index column and use EARLIER if you want to do this in DAX. See my article on Mean Time Between Failure (MTBF) which uses EARLIER: http://community.powerbi.com/t5/Community-Blog/Mean-Time-Between-Failure-MTBF-and-Power-BI/ba-p/3395...
User | Count |
---|---|
141 | |
113 | |
104 | |
78 | |
64 |
User | Count |
---|---|
136 | |
125 | |
107 | |
70 | |
61 |