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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
prashantg364
Helper II
Helper II

Column DAX

I am having a table as shown below

dateServiceidservicestatus
6-2-231001complaint_1
11-2-231002complaint_2
25-2-231003complaint_3
28-2-231004resolution_1
3-3-231005complaint_4
3-3-231006resolution_2

 

I want to add a column at the end to calculate the number of iterations required till the final resolution.
Calculate all complaint iterations and consider only 1 iteration for the final resolution(resoultion_2 is considered as final in the below table)

dateServiceidservicestatusIteration till final resolution
6-2-231001complaint_15
11-2-231002complaint_25
25-2-231003complaint_35
28-2-231004resolution_15
3-3-231005complaint_45
3-3-231006resolution_25



2 REPLIES 2
FreemanZ
Super User
Super User

hi @prashantg364 

could you enrich your dataset to better present your case?

ichavarria
Solution Specialist
Solution Specialist

Here's one way to calculate the number of iterations required till the final resolution:

 

  1. First, create a calculated column called "Iteration" using the following DAX formula:
  2. Next, create another calculated column called "Iteration till final resolution" using the following DAX formula:

This formula will calculate the maximum iteration for each service ID where the service status is "resolution_2". The result will be the number of iterations required till the final resolution.

Make sure to replace 'your_table' with the actual name of your table in Power BI.

Best regards, 

Isaac Chavarria 


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

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.