Forum Discussion

Analitika's avatar
Analitika
Icon for Post Prodigy rankPost Prodigy
6 years ago
Solved

Remove not needed rows

Need to remove not needed rows and have no + signs

 

 

 

https://easyupload.io/fn5yc2

 

 

  • Hi Analitika ,

    Modify your [4_5 BP] measure like this:

    4_5_BP =
    IF (
        ISINSCOPE ( Table1[sas_kod] ),
        SWITCH (
            SELECTEDVALUE ( Table22[Name BP] ),
            "Sales", 1,
            "Costs", 2,
            "Profit", BLANK (),
            "BP marge %", BLANK ()
        ),
        IF (
            ISINSCOPE ( Table22[Name BP] ),
            SWITCH (
                SELECTEDVALUE ( Table22[Name BP] ),
                "Sales", 1,
                "Costs", 2,
                "Profit", 3,
                "BP marge %", 4
            )
        )
    )

    In addition, +signs cannot be removed.

     

    Best Regards,
    Yingjie Li

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

4 Replies

  • v-yingjl's avatar
    v-yingjl
    Icon for Community Support rankCommunity Support

    Hi Analitika ,

    Modify your [4_5 BP] measure like this:

    4_5_BP =
    IF (
        ISINSCOPE ( Table1[sas_kod] ),
        SWITCH (
            SELECTEDVALUE ( Table22[Name BP] ),
            "Sales", 1,
            "Costs", 2,
            "Profit", BLANK (),
            "BP marge %", BLANK ()
        ),
        IF (
            ISINSCOPE ( Table22[Name BP] ),
            SWITCH (
                SELECTEDVALUE ( Table22[Name BP] ),
                "Sales", 1,
                "Costs", 2,
                "Profit", 3,
                "BP marge %", 4
            )
        )
    )

    In addition, +signs cannot be removed.

     

    Best Regards,
    Yingjie Li

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

    • Analitika's avatar
      Analitika
      Icon for Post Prodigy rankPost Prodigy

      TY, it works only with columns, if Scope is something like

      IF(
      sas_kod = "others",
      related(Table2[name]),
      related(Table3[name]))

      it stop working 

      • v-yingjl's avatar
        v-yingjl
        Icon for Community Support rankCommunity Support

        Hi Analitika ,

        Could you please share more details about this for further discussion? What is your expected output?

         

        Best Regards,
        Yingjie Li

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

         

  • Analitika you can surely suppress the rows you dont want to show using ISINSCOPE function but you cannot disable + sign.

     

    I would  Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos whoever helped to solve your problem. It is a token of appreciation!

    Visit us at https://perytus.com, your one-stop-shop for Power BI-related projects/training/consultancy.