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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
BarryFletcher
Helper I
Helper I

Pie Chart values as a percentage of a static value

I need to create a pie chart that shows a value from a filed as a percentage of a "fixed" value. So I have a measurement of 7000 meters. My PowerBi Dashboard has values per building based on a slicer selection. Can I get each value on a pie chart as a percentage of the fixed 7000m value?

1 ACCEPTED SOLUTION
Ritaf1983
Super User
Super User

Hi @BarryFletcher 

You can use 3 Dax measures :
1.For 7000 :

divider = 7000
2. For selected building :
selected building = sum('Table'[Bealding area])
3 For the difference between 7000 and the selected part :
dynamic difference = [divider]- sum('Table'[Bealding area])
Result :
Ritaf1983_2-1702647705297.png

Pbix is attached

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

 

View solution in original post

2 REPLIES 2
BarryFletcher
Helper I
Helper I

Thank you for the quick response and solution. Worked perfectly.

Ritaf1983
Super User
Super User

Hi @BarryFletcher 

You can use 3 Dax measures :
1.For 7000 :

divider = 7000
2. For selected building :
selected building = sum('Table'[Bealding area])
3 For the difference between 7000 and the selected part :
dynamic difference = [divider]- sum('Table'[Bealding area])
Result :
Ritaf1983_2-1702647705297.png

Pbix is attached

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

 

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.