Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
3 years ago
Solved

Calculate Total

I have raw data with below format. Each station and each date can have a multiple parameter name but the Total Qty will be the same as it it a qty of testing unit on that station / day. 

 

 

I'm creating a overall total by

Total Test = sumx(
    SUMMARIZE(sample1,sample1[Station],sample1[Date],sample1[Total Qty]),sample1[Total Qty])
Grand Total = CALCULATE([Total Test],REMOVEFILTERS(sample1[Parameter Name]))
 
The total is correct. AFter that I need to generate % of each pareto based on the grand total.
I want to be able to hide some parameter but still keep the grand total the same (in this case, 691).
 

 

 

However, if i filter to some parameters, the grand total change. How can I keep the grand total unchange ?

 

 

 

  • Hi Anonymous ,

     

    I can't reproduce your question. Because in my computer the value is normal.

    Please look these screenshots:

    And here is my file, could you please try again?

     

    Best Regards,

    Community Support Team _Yinliw

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

     

     

     

4 Replies

  • v-yinliw-msft's avatar
    v-yinliw-msft
    Community Support

    Hi Anonymous,

     

    Because in the screenshot I can only see the top 18 rows data.

    So I use them to take a test.

     

     

    And I use the formula you post in the case to try, it works well.

     

     

     

     

    Could you please provide more information about your options? Here is my PBIX file.

     

    Best Regards,

    Community Support Team _Yinliw

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

    • Anonymous's avatar
      Anonymous
      Not applicable

      Thanks for the reply. Same file, if you select only parameter 10, the total will be wrong.

       

       

       

       

       

      • v-yinliw-msft's avatar
        v-yinliw-msft
        Community Support

        Hi Anonymous ,

         

        I can't reproduce your question. Because in my computer the value is normal.

        Please look these screenshots:

        And here is my file, could you please try again?

         

        Best Regards,

        Community Support Team _Yinliw

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