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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Duffster
New Member

Clustered Barchart using sum of Boolean ( 1 or 0 ) when drilling down does not just show True

I am really hoping someone can help with an issue that I am really struggling to resolve in my Power Bi ? 

 

I have a datamodel that has a number of fields identified as 1 or 0 example below 

Duffster_0-1683201792760.png

 

when I create a clustered barchart including the Sum of these values as below I would expect Clicking on each one of the clusters would filter the underlying table , for the respective column and only show the positive values ( 1 ) however it shows both the 1 and zero data. 

 

Duffster_1-1683202001213.png

 

Duffster_2-1683202070482.png

 

so in the above example I would like to just show the 5 Records in the table where OOF180 = 1 

 

Is this possible ?? 

 

Many thanks for any help in advance 

 

 

1 ACCEPTED SOLUTION
VijayP
Super User
Super User

@Duffster 

I think I found a simple way

in first place you have to unpivot you are all boolean columns into one single column and then

instead of normal table use the matrix table and you will get the required result

you can use the uploaded file




Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
MY Blog || My YouTube Channel || Connect with me on Linkedin || My Latest Data Story - Ageing Analysis

Proud to be a Super User!


View solution in original post

3 REPLIES 3
VijayP
Super User
Super User

@Duffster 

I think I found a simple way

in first place you have to unpivot you are all boolean columns into one single column and then

instead of normal table use the matrix table and you will get the required result

you can use the uploaded file




Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
MY Blog || My YouTube Channel || Connect with me on Linkedin || My Latest Data Story - Ageing Analysis

Proud to be a Super User!


VijayP
Super User
Super User

@Duffster 

Since you have created a series like APPPS etc and added datapoints to it , when you try to filter entire series will get filtered. So it shows values of all datapoints of that series that is why you are not able to see only 1s or 0s.

 

Need to see, but it is possible thru dax alongwith slicer




Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
MY Blog || My YouTube Channel || Connect with me on Linkedin || My Latest Data Story - Ageing Analysis

Proud to be a Super User!


Many thanks for such a prompt reply @VijayP.  re Need to see, but it is possible thru dax alongwith slicer

 

Could you elaborate on the method to apply using dax and slicer please ? 

 

If you need to see anything else let me know I can update the original question - Once again thanks 

Helpful resources

Announcements
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!

November Carousel

Fabric Community Update - November 2024

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

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.