Forum Discussion

PascalCL's avatar
PascalCL
Frequent Visitor
4 years ago
Solved

Totel Sum worg

Hi I have the problem 

 

When I display the total sum of the measure, the result does not right.

 

 

how can i fix this?

  • Hi  PascalCL 

    Thanks for reaching out to us.

    This is a typical problem, please try this, create 2 measures,

    Vorschlag CT 2 =
    IF (
        SUM ( 'Sales invoices 2021/2022 (2)'[Quantity] ) = 0,
        BLANK (),
        DIVIDE (
            SUM ( 'Sales invoices 2021/2022 (2)'[Quantity] ) - 'Item'[Theoretischer Vorrat],
            SUM ( 'Item'[Anz. / Paket] )
        )
    )
    totalrow= IF(ISFILTERED('Table'[name]),[Vorschlag CT 2],sumx('Sales invoices 2021/2022 (2)',[Vorschlag CT 2]))

     

     

    Best Regards,

    Community Support Team _Tang

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

3 Replies

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

    Hi  PascalCL 

    Thanks for reaching out to us.

    This is a typical problem, please try this, create 2 measures,

    Vorschlag CT 2 =
    IF (
        SUM ( 'Sales invoices 2021/2022 (2)'[Quantity] ) = 0,
        BLANK (),
        DIVIDE (
            SUM ( 'Sales invoices 2021/2022 (2)'[Quantity] ) - 'Item'[Theoretischer Vorrat],
            SUM ( 'Item'[Anz. / Paket] )
        )
    )
    totalrow= IF(ISFILTERED('Table'[name]),[Vorschlag CT 2],sumx('Sales invoices 2021/2022 (2)',[Vorschlag CT 2]))

     

     

    Best Regards,

    Community Support Team _Tang

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

    • PascalCL's avatar
      PascalCL
      Frequent Visitor

      Unfortunately, I do not quite get along with it...

       

      here the measure with which I work.

       

      Vorschlag CT 2 =
      IF(
           SUM('Sales invoices 2021/2022 (2)'[Quantity]) =0,
             BLANK(),
             DIVIDE(
           SUM('Sales invoices 2021/2022 (2)'[Quantity]) - 'Item'[Theoretischer Vorrat],
           SUM('Item'[Anz. / Paket])
           )
      )