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
Anonymous
Not applicable

Trying to create donut chart with percentage

Hello,

 

I am trying to create donut chart with percentage view but its not working for me.

alpha_123_1-1617973917684.png

 The total receipt is 4, measure I am using -> total receipt = Sheet1[Receipt Initiated After Effective Date]+Sheet1[Receipt_rest]

where 1 is receipt initiated after effective date, measure I am using-> 

Receipt Initiated After Effective Date = COUNTROWS(FILTER(Sheet1,Sheet1[Business_Process_Type] = "Receipt" && Sheet1[Date_and_Time_Initiated]>Sheet1[Effective_Date]))

and 3 is Receipyt rest, measure I am using -> 

Receipt_rest = COUNTROWS(FILTER(Sheet1,Sheet1[Business_Process_Type] = "Receipt" && Sheet1[Date_and_Time_Initiated]<=Sheet1[Effective_Date]))
 
I need to show in the donut chart as percentage -
1/4 & 3/4
But in the donut, something diff coming!
 
kindly help!

 

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

Hi  @Anonymous ,

 

Do you wanna show as below:

v-kelly-msft_0-1618221272363.png

If so,remove the total measure from the donut field:

v-kelly-msft_1-1618221335613.png

 

 

Best Regards,
Kelly

Did I answer your question? Mark my post as a solution!

View solution in original post

12 REPLIES 12
v-kelly-msft
Community Support
Community Support

Hi  @Anonymous ,

 

Do you wanna show as below:

v-kelly-msft_0-1618221272363.png

If so,remove the total measure from the donut field:

v-kelly-msft_1-1618221335613.png

 

 

Best Regards,
Kelly

Did I answer your question? Mark my post as a solution!

Anonymous
Not applicable

Hi @sayaliredij,

 Still not clear.

Actually I am fairely new to powerBi

 

Is there any option here to attach my dashboard?

Can you add pbix file (after removing sensitive data) at some dropbox location?

 

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Anonymous
Not applicable

Hello @sayaliredij ,

 

I tried to add the pbix but below error is showing-

alpha_123_0-1617985387389.png

 

You can not add in Forum but you have to add using drop box or one drive. 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




sayaliredij
Super User
Super User

As these 3 attributes are separate measures. It is not possible to fit them in a single donut. But you can do the following

 

1. In your main table, add column "category" and you can categorize each receipt using this calculated column

2. Then you just need to create one measure eg. COUNTROWS(Tab) 

3. use this measure for donut chart and in the legend - specify category

 

Thanks,

Sayali 

 

If this post helps, then please consider Accept it as the solution to help others find it more quickly.





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




amitchandak
Super User
Super User

@Anonymous , Donut chart showing % , is that calculation not correct. I doubt you can display 1/4, 3/4 etc

Anonymous
Not applicable

Hi @sayaliredij ,

 

Can you help me with the below -

 

1. In your main table, add column "category" and you can categorize each receipt using this calculated column - What would be the dax formula?

2. Then you just need to create one measure eg. COUNTROWS(Tab) - Measure as in?

I dont know how exactly the data look like

 

But I could imagine something like this

Category = IF('Table'[Effective Date] < 'Table'[Date Time Initiated],"Receipt Initiated After Effective Date","Receipt Rest")
 
Once this column is created 
 
You can create measure as follows
 
Receipt Count = COUNTROWS(table)
 
sayaliredij_0-1617978037458.png

 

Regards,

Sayali





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Anonymous
Not applicable

Hi @sayaliredij ,

 

Not working.

here is the data -

alpha_123_0-1617980291100.png

 

I used the following data

 

sayaliredij_0-1617981382426.png

 

Category has formula as below

 

Category = IF('Table'[Effective Date] < 'Table'[Date Time Initiated],"Initiated After Effective Date","Rest")
 
Measure Formule is 
 
Receipt Count = COUNTROWS('Table')
 
and Put a filter/slicer with Receipts - as you are only interested in receipts
 
sayaliredij_2-1617981531324.png

Please check if this works. Make sure you have else condition in the formula 

 

Regards,

Sayali

 

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Anonymous
Not applicable

Hello @amitchandak ,

 

Can you guide me with the right approach?

I think formulas are not correct?

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.