Forum Discussion

larbar110's avatar
larbar110
Copper Contributor
Oct 13, 2021

How can I exclude all negative numbers from a grand total in a pivot table?

I am trying to only include positive numbers in this calculation without deleting negative values or hardcoding.

 

 

2 Replies

  • Julianchamizo's avatar
    Julianchamizo
    Copper Contributor
    Prepara tus datos por anticipado, crea un nuevo campo, que sea Nevative_Value con los valores TRUE or False. Luego en la tabla dinamica filtra en el encabezado por Negative_value=false
  • Riny_van_Eekelen's avatar
    Riny_van_Eekelen
    Platinum Contributor

    larbar110 For that you need to load the data to the Data Model and use a DAX measure. Since you do not disclose the structure of your own data (table name, column names etc.), I made a small example as shown in the picture below.

     

    All data is stored in "Table1" and the pivot table only sums positive "Values" for each "Ref".

Resources