Forum Discussion
Count the Variable when it appear the first time
- 3 years ago
Hi again,
Yes, it is possible please follow these few steps (after adding index column):
1. Group by with counting all rows:2. Expand only index
3. Add a conditional column
4. remove unnecessary columns
RESULT :If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly.
Hi Yqy
You can achieve it with 2steps :
1 . In PQ add the index column:
2. In the Data editor add a column with this Dax:
If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly.
- Yqy3 years agoHelper I
Hi, is it possible to do the second step in Query using M language instead of in the data editor using DAX
- Ritaf19833 years agoSuper User
Hi again,
Yes, it is possible please follow these few steps (after adding index column):
1. Group by with counting all rows:2. Expand only index
3. Add a conditional column
4. remove unnecessary columns
RESULT :If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly.
- Yqy3 years agoHelper I
Thanks for the help, your solution works.