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

Try your skills in the Power BI Dataviz World Championship! Round one ends June 26. Join now

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
Anonymous
Not applicable

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
Anonymous
Not applicable

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.


Click here to visit 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.


Click here to visit 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.


Click here to visit 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
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.