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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
Anonymous
Not applicable

To establish model

Hi All,

i tried to prepare simple PBI report similar as shown below. however i couldnt find a formula "Status - Completed or Not completed" to create "Slicer". can anyone assist me.

 

yuyi_0-1727075766982.png

 

Excel report showing the status of publish vs. pending

No.ProgramTotal DocTotal Publish%Total Pending%Target Completion
1A14964%536%-
2B500%5100%-
3C66100%00%Completed
4D12217%1083%27.09.2024
5E281554%1036%15.10.2024
6F1818100%00%Completed
7G4375%125%20.09.2024
8H14643%643%04.10.2024
9I8788%113%30.10.2024
10J700%7100%15.10.2024
11K19421%1263%27.09.2024
12L1100%764%27.09.2024
13M200%2100%11.10.2024
14N200%2100%11.10.2024
15O200%2100%07.10.2024
16P200%2100%07.10.2024
17Q22100%00%Completed
18R2150%150%07.10.2024
19S400%4100%07.10.2024
20T1500%1493%04.10.2024
21U1700%17100%04.10.2024
22V1300%13100%04.10.2024
23W200%2100%04.10.2024
24X1100%11100%04.10.2024
25Y1800%18100%04.10.2024
2 ACCEPTED SOLUTIONS

Heya,

If I understood your problem correctly, I would simply add a calculated column with the below logic and then use this new column as a slicer:

Slicer = IF('Table'[Target Completion]="Completed","Completed","Not completed")

 

If this solved your problem then please mark it as the solution so others can see it.

 

Best,



If the post helped then please give it a Kudos and mark it as the solution so others can see it.
Cheers,

View solution in original post

Hi @Anonymous 
For the slicer, you can create a calculated column :

Status_ = IF([Target Completion]="Completed" , "Completed", "Not completed")
Ritaf1983_0-1727085357894.png

To get the graph with not completed as negative values you can create a measure :

Count_status = IF(SELECTEDVALUE('Table'[Status_])= "Completed" ,COUNTROWS('Table'),COUNTROWS('Table')*-1)
RESULT :
Ritaf1983_1-1727085462140.pngRitaf1983_2-1727085483426.png

The pbix is attached

If my answer was helpful please give me a Kudos and accept as a Solution.

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

View solution in original post

5 REPLIES 5
Ritaf1983
Super User
Super User

Hi @Anonymous 
Which rows are "not completed here"? 

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile
Anonymous
Not applicable

Hi @Ritaf1983,

 

All except row 3, 6 & 17

Anonymous
Not applicable

All except row 3, 6 & 17

Hi @Anonymous 
For the slicer, you can create a calculated column :

Status_ = IF([Target Completion]="Completed" , "Completed", "Not completed")
Ritaf1983_0-1727085357894.png

To get the graph with not completed as negative values you can create a measure :

Count_status = IF(SELECTEDVALUE('Table'[Status_])= "Completed" ,COUNTROWS('Table'),COUNTROWS('Table')*-1)
RESULT :
Ritaf1983_1-1727085462140.pngRitaf1983_2-1727085483426.png

The pbix is attached

If my answer was helpful please give me a Kudos and accept as a Solution.

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

Heya,

If I understood your problem correctly, I would simply add a calculated column with the below logic and then use this new column as a slicer:

Slicer = IF('Table'[Target Completion]="Completed","Completed","Not completed")

 

If this solved your problem then please mark it as the solution so others can see it.

 

Best,



If the post helped then please give it a Kudos and mark it as the solution so others can see it.
Cheers,

Helpful resources

Announcements
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.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

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