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.
hi everybody,
i dont know if the title corespond to the request but i need your help.
i want to calculate the averge of month promotion for each employee
i use distinct it doesnt work.
i want to create a new calculate column that can identify the first line and put 1 if its different from the previous id and blank if the id of row context is similar to the previous context
Column = if(CALCULATE(min(table[id]),FILTER(table,table[id]<>EARLIER(table[id]))),1,BLANK())
Solved! Go to Solution.
Hi @Anonymous ,
You can create a new calculate column like so:
1. In Query Editor, add an Index column from 1;
2. Create columns:
Column = VAR PreviousIndex = 'Table'[Index] - 1 RETURN 'Table'[id] - CALCULATE ( VALUES ( 'Table'[id] ), FILTER ( ALL ( 'Table' ), 'Table'[Index] = PreviousIndex ) ) Column 2 = IF ( 'Table'[Column] = 1, 1, BLANK () )
Best Regards,
Icey Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous ,
You can create a new calculate column like so:
1. In Query Editor, add an Index column from 1;
2. Create columns:
Column = VAR PreviousIndex = 'Table'[Index] - 1 RETURN 'Table'[id] - CALCULATE ( VALUES ( 'Table'[id] ), FILTER ( ALL ( 'Table' ), 'Table'[Index] = PreviousIndex ) ) Column 2 = IF ( 'Table'[Column] = 1, 1, BLANK () )
Best Regards,
Icey Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
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 |
---|---|
96 | |
94 | |
80 | |
71 | |
64 |
User | Count |
---|---|
115 | |
106 | |
96 | |
81 | |
72 |