Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Anonymous
Not applicable

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

 

Exemplo Sem filtro.png

 

Exemplo Filtro.png

 

 

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

 

 

 

 

Exemplo Filtro selecionado.png

 

Exemplo power BI.png

 

 

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

 

 

 

 

2 ACCEPTED SOLUTIONS
V-lianl-msft
Community Support
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.

View solution in original post

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

View solution in original post

4 REPLIES 4
V-lianl-msft
Community Support
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
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
parry2k
Super User
Super User

@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.



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

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

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.