Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

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.

Reply
tameemyousaf
Helper I
Helper I

Increment in Calculated Column

Hi 

Below is my data and last column is the required result. Can anyone please help.

 

tameemyousaf_0-1623690566939.png

 

1 ACCEPTED SOLUTION
v-stephen-msft
Community Support
Community Support

Hi @tameemyousaf ,

 

You can create the following column

Required result = IF([Count]=0,0, RANKX(FILTER('Table',[Count]=0),[Number],,ASC,Dense))

Screenshot 2021-06-18 154908.png

 

 

Best Regards,

Stephen Tao

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

7 REPLIES 7
v-stephen-msft
Community Support
Community Support

Hi @tameemyousaf ,

 

You can create the following column

Required result = IF([Count]=0,0, RANKX(FILTER('Table',[Count]=0),[Number],,ASC,Dense))

Screenshot 2021-06-18 154908.png

 

 

Best Regards,

Stephen Tao

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Jihwan_Kim
Super User
Super User

   

If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Go to My LinkedIn Page


@Jihwan_Kim when I added the same number in table it is giving below result

 

tameemyousaf_0-1623693090869.png

 

I do not understand why you put my measure into the different data and expect to see the same result.

If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Go to My LinkedIn Page


@Jihwan_Kim Thanks for your response. Actually number is the serial number and what if the number is same?

Hi, @tameemyousaf 

Thank you for your feedback.

Then, how do you differentiate each row?

 

If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Go to My LinkedIn Page


@Jihwan_Kim I will differentiate each row with count column. If count column is showing zero against sigle date and same serial number then the required result should increment the data.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.