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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
PeterDonohue
New Member

Multiple Columns One Chart with Different Results

I could not figure out how to name this subject 🙂 but looking for some assistance.

I have 6 columns (all binary TRUE/FALSE)
Each one has a differrent heading i.e. pears / apples / peaches / bananas 
So....
Pear   |    Apple   |    Peaches  |  Bananas
True   |    False    |    True        |   False
False  |    True     |    False       |    True

 

Ideally I'd love to be able to display this on 1 column Chart with each column being a type of fruit and the size being the COUNT of the instances of TRUE

I'm just drawing a blank 🙂

Thanks 

 

1 ACCEPTED SOLUTION
v-lili6-msft
Community Support
Community Support

hi, @PeterDonohue 

You could also try this way:

Create 6 measure as below:

COUNT Apple = CALCULATE(COUNTA('Table'[Apple]),'Table'[Apple]=TRUE())
COUNT Peaches = CALCULATE(COUNTA('Table'[Peaches]),'Table'[Peaches]=TRUE())
COUNT Pear = CALCULATE(COUNTA('Table'[Pear]),'Table'[Pear]=TRUE())

and so on.

Then create a clustered bar char by these measure.

7.JPG

and here is a simple sample pbix file, please try it.

 

Regards,

Lin

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-lili6-msft
Community Support
Community Support

hi, @PeterDonohue 

You could also try this way:

Create 6 measure as below:

COUNT Apple = CALCULATE(COUNTA('Table'[Apple]),'Table'[Apple]=TRUE())
COUNT Peaches = CALCULATE(COUNTA('Table'[Peaches]),'Table'[Peaches]=TRUE())
COUNT Pear = CALCULATE(COUNTA('Table'[Pear]),'Table'[Pear]=TRUE())

and so on.

Then create a clustered bar char by these measure.

7.JPG

and here is a simple sample pbix file, please try it.

 

Regards,

Lin

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
kentyler
Solution Sage
Solution Sage

unpivot

fruit | value

pear true

pear true

apple false

apple true





Did this post answer your question? Mark it as a solution so others can find it!

Help when you know. Ask when you don't!




Join the conversation at We Talk BI find out more about me at Slow BI


Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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