Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.
Hi,
I have a table which contains the following columns:
And I would like to create a Donut chart like this:
How can I achieve this?
thank you!
Hi @alice11987
If you have the days count in your data, you can simply create a calculated column and use it as the legend.
=
SWITCH (
TRUE (),
table[dayscolumn] >= 61, "60+ days",
table[dayscolumn] >= 31, "31-60 days",
table[dayscolumn] >= 15, "15-30 days",
" <15 days"
)
Proud to be a Super User!
Hi, thanks for your answer, but the days i need are in median, not total
Hi @alice11987
Yes.
You need to cluster your medians into groups by median and then put them on the chart by ranges.
Here is a link to a tutorial for making needed segmentations ( in your case by duration)
https://hacksfordataanalysis.com/2020/08/19/group-by-range-2-ways-to-group-data-in-power-bi/
If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly
Check out the November 2023 Power BI update to learn about new features.
Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.
Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!