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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
JeevanMallya
Resolver II
Resolver II

PwerQuery is considered Incompleted Status even though Completed is used

ISSUE_KEYSPRINT_REPORT_STATUSISSUE_TYPE_NAMESPRINT_NAME
ABC-74676INCOMPLETEDTaskSprint 208
ABC-74579COMPLETEDStorySprint 208
ABC-74585COMPLETEDStorySprint 208
ABC-74415COMPLETEDTaskSprint 208
ABC-74160COMPLETEDTaskSprint 208
ABC-74159COMPLETEDTaskSprint 208
ABC-73181COMPLETEDStorySprint 208
ABC-73875COMPLETEDStorySprint 208

 

I have these columns in Sprint Master Table and i am trying to claculate Total Completed.

The query i am using is :

WORK_UNITS_COMPLETED = IF(Sprint_Master[SPRINT_REPORT_STATUS]=="COMPLETED" && Sprint_Master[ISSUE_TYPE_NAME]=="Story" || Sprint_Master[ISSUE_TYPE_NAME]=="Task", CALCULATE(Count(Sprint_Master[ISSUE_KEY])))

 

But some how it is considering even Incompleted ones and showing result as 8.

The result is 

ISSUE_KEYSPRINT_REPORT_STATUSISSUE_TYPE_NAMEWORK_UNITS_COMPLETED
ABC-74676INCOMPLETEDTask1
ABC-74579COMPLETEDStory1
ABC-74585COMPLETEDStory1
ABC-74415COMPLETEDTask1
ABC-74160COMPLETEDTask1
ABC-74159COMPLETEDTask1
ABC-73181COMPLETEDStory1
ABC-73875COMPLETEDStory1

 

Help needed as why Incompleted is also considered when query is correct.

2 ACCEPTED SOLUTIONS

Thank you very much

View solution in original post

@JeevanMallya 

No problem, Please accept my answer as a solution.



Need Power BI consultation, hire me on UpWork .


If the post helps please give a thumbs up



If it solves your issue, please accept it as the solution to help the other members find it more quickly.




Tharun



View solution in original post

3 REPLIES 3
tharunkumarRTK
Super User
Super User

@JeevanMallya 

The code that you have given is DAX, not the m code in power query. To get you expected result, please try this code

WORK_UNITS_COMPLETED = IF(Sprint_Master[SPRINT_REPORT_STATUS]="COMPLETED" && (Sprint_Master[ISSUE_TYPE_NAME]="Story" || Sprint_Master[ISSUE_TYPE_NAME]="Task" ) , CALCULATE(Count(Sprint_Master[ISSUE_KEY])))

 



Need Power BI consultation, hire me on UpWork .


If the post helps please give a thumbs up



If it solves your issue, please accept it as the solution to help the other members find it more quickly.




Tharun



Thank you very much

@JeevanMallya 

No problem, Please accept my answer as a solution.



Need Power BI consultation, hire me on UpWork .


If the post helps please give a thumbs up



If it solves your issue, please accept it as the solution to help the other members find it more quickly.




Tharun



Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors