Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
1 year ago
Solved

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.

 

 

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
  • MNedix's avatar
    MNedix
    1 year ago

    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,

  • Ritaf1983's avatar
    Ritaf1983
    1 year ago

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

    Status_ = IF([Target Completion]="Completed" , "Completed", "Not completed")

    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 :

    The pbix is attached

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

5 Replies

    • Anonymous's avatar
      Anonymous
      Not applicable

      All except row 3, 6 & 17

      • MNedix's avatar
        MNedix
        Solution Sage

        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,

    • Anonymous's avatar
      Anonymous
      Not applicable

      Hi Ritaf1983,

       

      All except row 3, 6 & 17