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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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