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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

Reply
fluffysnow
Frequent Visitor

Filter bar chart

How I can filter this bar chart to only keep projects (bars) that have late deliveries, i.e. only show projects A and B in this example? Sample data table is below

fluffysnow_0-1721012843726.png


Sample data table:

delivery idProject nameDelivery time
1Project AOn time
2Project BOn time
3Project AOn time
4Project COn time
5Project COn time
6Project AOn time
7Project BOn time
8Project COn time
9Project DOn time
10Project DOn time
11Project AOn time
12Project BOn time
13Project DOn time
14Project EOn time
15Project ALate
16Project BLate
17Project ALate

 

1 ACCEPTED SOLUTION

hello @fluffysnow 

 

please check if this what you need.

Irwan_0-1721022385011.png

 

If this what you need, then you can create new measure with conditional if or switch.

Measure =
var _Late = CALCULATE(COUNT('Table'[Delivery time]),'Table'[Delivery time]="Late")
Return
IF(
    _Late>0,
    COUNT('Table'[Delivery time])
)
 
then change the x-axis value into the measure that has been made above.
Irwan_1-1721022583868.png

 

Hope this will help you.

Thank you.

View solution in original post

7 REPLIES 7
manvishah17
Responsive Resident
Responsive Resident

Hi @fluffysnow ,
You can just simple add visual level filter on Bar graph ,
where ,
delivery time= late 
Screenshot 2024-07-15 103729.png

 

@manvishah17, thank you for your suggestion, but I do want to show the On time deliveries for these projects. So, your solution is not what I am looking for. I am looking to only display Projects that have late deliveries but I want to display ALL of their deliveries, not only late. Thanks!

hello @fluffysnow 

 

please check if this what you need.

Irwan_0-1721022385011.png

 

If this what you need, then you can create new measure with conditional if or switch.

Measure =
var _Late = CALCULATE(COUNT('Table'[Delivery time]),'Table'[Delivery time]="Late")
Return
IF(
    _Late>0,
    COUNT('Table'[Delivery time])
)
 
then change the x-axis value into the measure that has been made above.
Irwan_1-1721022583868.png

 

Hope this will help you.

Thank you.

@Irwan, thank you so much! It worked perfectly! I really appreciate your help. Thank you for taking the time to help me! 🏅

hello @fluffysnow 

 

glad to be a help.

 

Thank you.

Ashish_Mathur
Super User
Super User

Hi,

Share the dowload link of the PBI file.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

I cant share the file. It's proprietory data. See sample data file above. Thanks!

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

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