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

Data Days is here! Join us now for 60+ days of learning, challenges, and connection. Learn more

Reply
Uzi2019
Community Champion
Community Champion

convert measure to column which i have to use in Pie chart

Hi Experts,

 

I Have measure showing top 10 city n 11th as other value. I want to show in pie chart but not able to show because measure can not be added in "Legend" field of Pie chart. Please help me to solve this issue.I have created column but not showing correct result.

Capture.PNG

Actual answer should be this.I have taken measure because measure shows correct value.. but same formula is not working for calculated column. 

Capture.PNG

please help me to create correct column which shows above result.Thank you in Advance.

Don't forget to give thumbs up and accept this as a solution if it helped you!!!
1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi,

 

I think this will work for you:

legend = var a = RANKX(Facebook, CALCULATE(SUM(Facebook[Impressions]), ALLEXCEPT(Facebook, Facebook[Region])),,DESC,Dense)
return 
if(a >= 11 , "others", Facebook[Region])

 

Let me know if you need any help! 

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Hi,

 

I think this will work for you:

legend = var a = RANKX(Facebook, CALCULATE(SUM(Facebook[Impressions]), ALLEXCEPT(Facebook, Facebook[Region])),,DESC,Dense)
return 
if(a >= 11 , "others", Facebook[Region])

 

Let me know if you need any help! 

@Anonymous 

Thank you so much... It solved my issue...

Don't forget to give thumbs up and accept this as a solution if it helped you!!!
Uzi2019
Community Champion
Community Champion

Hi,

 

For refrence i am attcahing link of Pbix file.

Want to display pie chart of top 10 city+ 11th as other values...

 

thank you in advance

https://drive.google.com/file/d/1nNSktMkDxrgLyyz0fZCnZwJxjOgyPrTw/view?usp=sharing

 

Don't forget to give thumbs up and accept this as a solution if it helped you!!!

Helpful resources

Announcements
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.