Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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...
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
112 | |
97 | |
84 | |
67 | |
59 |
User | Count |
---|---|
150 | |
120 | |
99 | |
87 | |
68 |