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

Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers. Get Fabric certified for FREE! Learn more

Reply
Anonymous
Not applicable

Create column chart from SharePoint Online list with data modelling

Hi,

I am new to Power BI.

My data set looks like this:

Soumo777_0-1621861076478.png

I want my column graph to look like this:

Soumo777_1-1621861115822.png

How do I achieve this?

Thanks in advance for all the help.

1 ACCEPTED SOLUTION

@Anonymous , No pets on axis and a measure 

measure = count(Table[Pets]) on values should do

 

If you want a table

 

new Table  =

summarize(Table, Table[pets], "Count", count(Table[Pets]))

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

4 REPLIES 4
amitchandak
Super User
Super User

@Anonymous , This counts pets with pets on-axis.

With conditional formatting measure with field value option

 

Color = Switch(true(),

max(Table[Pets] ="Cat" , "Red",

max(Table[Pets] ="Dog" , "Yellow",

// Add other

"Green" //default

 

)

 

For conditional formatting refer PowerBI Abstract Thesis: How to do conditional formatting by measure and apply it on pie?: https://youtu.be/RqBb5eBf_I4

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

Hi @amitchandak ,

But in order to achieve this, I think my data source should look like this:

Soumo777_0-1621862683031.png

How do I model it in this way?

@Anonymous , No pets on axis and a measure 

measure = count(Table[Pets]) on values should do

 

If you want a table

 

new Table  =

summarize(Table, Table[pets], "Count", count(Table[Pets]))

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

@amitchandak Thanks a ton! Worked perfectly.

Helpful resources

Announcements
PBIApril_Carousel

Power BI Monthly Update - April 2025

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

Notebook Gallery Carousel1

NEW! Community Notebooks Gallery

Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.

April2025 Carousel

Fabric Community Update - April 2025

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

Top Solution Authors