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
RKM
Helper IV
Helper IV

Multiple (Dynamic List) of Pie Or Gauge or donut chart

I want to have a dynamic number of Pie Or Gauge or donut chart. 

Columns are :  Member | Target ID | IsCompleted (True/False).

So: Each pie should be for each member and it should show: Count Of Target ID, lets say, its 10 for Member A. and then let's say 5 of then are : IsCompleted: True; then Chart should show 50% filled.  This way for each member a seperate Pie.

 

All chart should be in a single row. Just like the way, Small Multiple works and there you can adjust grid etc.

I see so far no such options. I tried with R visual. But the kind of function and libraries I used, require at least R 4.2.2 where as Power BI service I guess offer only R 3.4.4

 

Has anyone came across such scenario and found any work around?

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

Hi @RKM ,

 

According to your description, here are my steps you can follow as a solution.

(1) This is my test data. 

vtangjiemsft_0-1683789389808.png

(2) We can create a table and measures.

 

 

A Table= FILTER('Table','Table'[Member]="A")
true = 
var _a =COUNTROWS(FILTER(ALL('Table'),'Table'[Member]=MAX('Table'[Member])))
var _b=COUNTROWS(FILTER(ALL('Table'),'Table'[Member]=MAX('Table'[Member]) && 'Table'[IsCompleted]="TRUE"))
return DIVIDE(_b,_a,0)
fail = 1-'Table'[true]
a_true = 
var _a =COUNTROWS(FILTER(ALL('A Table'),'A Table'[Member]=MAX('A Table'[Member])))
var _b=COUNTROWS(FILTER(ALL('A Table'),'A Table'[Member]=MAX('A Table'[Member]) && 'A Table'[IsCompleted]="TRUE"))
return DIVIDE(_b,_a,0)
a_fail = 1-'A Table'[true]

 

(3) Then the result is as follows.

vtangjiemsft_1-1683789540240.pngvtangjiemsft_2-1683789759124.png

 

 

If the above one can't help you get the desired result, please provide some sample data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. Thank you.

 

Best Regards,

Neeko Tang

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

1 REPLY 1
v-tangjie-msft
Community Support
Community Support

Hi @RKM ,

 

According to your description, here are my steps you can follow as a solution.

(1) This is my test data. 

vtangjiemsft_0-1683789389808.png

(2) We can create a table and measures.

 

 

A Table= FILTER('Table','Table'[Member]="A")
true = 
var _a =COUNTROWS(FILTER(ALL('Table'),'Table'[Member]=MAX('Table'[Member])))
var _b=COUNTROWS(FILTER(ALL('Table'),'Table'[Member]=MAX('Table'[Member]) && 'Table'[IsCompleted]="TRUE"))
return DIVIDE(_b,_a,0)
fail = 1-'Table'[true]
a_true = 
var _a =COUNTROWS(FILTER(ALL('A Table'),'A Table'[Member]=MAX('A Table'[Member])))
var _b=COUNTROWS(FILTER(ALL('A Table'),'A Table'[Member]=MAX('A Table'[Member]) && 'A Table'[IsCompleted]="TRUE"))
return DIVIDE(_b,_a,0)
a_fail = 1-'A Table'[true]

 

(3) Then the result is as follows.

vtangjiemsft_1-1683789540240.pngvtangjiemsft_2-1683789759124.png

 

 

If the above one can't help you get the desired result, please provide some sample data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. Thank you.

 

Best Regards,

Neeko Tang

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

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.

Top Solution Authors
Top Kudoed Authors