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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
pakovic
Helper I
Helper I

Bar chart filtering specific records

Good afternoon and thank you in advance for your help. I have a table with business opportunities, with the fields ID, status, and date. I would like a bar chart in which, upon selecting a date, the data for "ganados" and "perdidos" opportunities would be recalculated, but the pending ones would be shown regardless of the date selection made in the filter. Is there any solution?  In the example I am attaching, the "Pendientes" always have to show 9 regardless of the filters applied.

I am attaching the PBIX file.

 

https://www.dropbox.com/s/8he19aybtxm105s/oportunidad.pbix?dl=0

 

 

pakovic_0-1683649510976.png

 

2 REPLIES 2
Ritaf1983
Super User
Super User

Hi @pakovic 
Please try this formula :

Contar = if(max('oportunidades'[estado])<>"pendiente",
 COUNT(oportunidades[id]),
  CALCULATE(COUNT('oportunidades'[id]),all('Calendar')))
Ritaf1983_0-1683684752242.png

 

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

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

But if I select April, I don't see the Pendiente. Is there any way to show me the 3 bars, maybe showing the accumulated? how could I put the formula?

pakovic_0-1683700867454.png

 

 

 

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors