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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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

Click here to schedule a short Teams meeting to discuss your question.

@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

Click here to schedule a short Teams meeting to discuss your question.

@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

Click here to schedule a short Teams meeting to discuss your question.

@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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.