Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

Slicing and change the visualization data

Hello Everybody,

 

I have a problem, where I can't change the visualization when I filter, for example this is my Visualization without filtering through Material Type as seen in the images under

 

 

 

 

But when I do Filter my data it still appears the other material types, it only changes my line in the chart as shown in the images under

 

 

 

 

 

 

 

The only thing I'd like to do differently in this case is only to show the yellow, blue or green bars when I do filter them

 

 

 

 

  • Hi Anonymous ,

     

    You could check whether the measure involved in visualization uses the “ALL” function

     

    Best Regards,

    Liang 

    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
    6 years ago

    Hi V-lianl-msft,

     

    I forgot to use filter in my calculate. I was doing like this:

     

    CT 1502 = CALCULATE(DIVIDE( SUM('DadosGNxVAZÃOxMV'[Consumo]);SUM('DadosGNxVAZÃOxMV'[Produção]);0);Filter('DadosGNxVAZÃOxMV'[Tipo]="Buna SE 1502")
     
    but with your commentary I realized I should do as follow
    CT 1502 = CALCULATE(DIVIDE( SUM('DadosGNxVAZÃOxMV'[Consumo]);SUM('DadosGNxVAZÃOxMV'[Produção]);0);Filter('DadosGNxVAZÃOxMV';'DadosGNxVAZÃOxMV'[Tipo]="Buna SE 1502"))
     
    Thanks for the support

4 Replies

  • Anonymous can you share wht measure you have on bar chart and how does your relationship looks like. Without knowing the model it is very hard to provide the solution.

    • Anonymous's avatar
      Anonymous
      Not applicable

      parry2k 

       

      Thanks for answering me, you were right the problem was indeed in the way I calculate my measure, you helped me to find where I went wrong. You're the man

  • V-lianl-msft's avatar
    V-lianl-msft
    Community Support

    Hi Anonymous ,

     

    You could check whether the measure involved in visualization uses the “ALL” function

     

    Best Regards,

    Liang 

    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

      Hi V-lianl-msft,

       

      I forgot to use filter in my calculate. I was doing like this:

       

      CT 1502 = CALCULATE(DIVIDE( SUM('DadosGNxVAZÃOxMV'[Consumo]);SUM('DadosGNxVAZÃOxMV'[Produção]);0);Filter('DadosGNxVAZÃOxMV'[Tipo]="Buna SE 1502")
       
      but with your commentary I realized I should do as follow
      CT 1502 = CALCULATE(DIVIDE( SUM('DadosGNxVAZÃOxMV'[Consumo]);SUM('DadosGNxVAZÃOxMV'[Produção]);0);Filter('DadosGNxVAZÃOxMV';'DadosGNxVAZÃOxMV'[Tipo]="Buna SE 1502"))
       
      Thanks for the support