The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
Hi,
I am new to Power BI.
My data set looks like this:
I want my column graph to look like this:
How do I achieve this?
Thanks in advance for all the help.
Solved! Go to 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]))
@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
Hi @amitchandak ,
But in order to achieve this, I think my data source should look like this:
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]))
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the August 2024 Power BI update to learn about new features.
User | Count |
---|---|
110 | |
80 | |
71 | |
51 | |
50 |
User | Count |
---|---|
128 | |
122 | |
77 | |
64 | |
60 |