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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors