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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. 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
Sept PBI Carousel

Power BI Monthly Update - September 2024

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

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

Sept NL Carousel

Fabric Community Update - September 2024

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