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
Yogi785
Frequent Visitor

Deneb Pie chart with hexa color from dataset

Hello, I am trying to use color from dataset with Hexa colors.

But not seems to work, becase colors are completly wrong :

Yogi785_1-1734341013969.png

Colors #293133 is dark grey !!

Yogi785_2-1734341108345.png

How to make it working please ?

 

Thanks 🙂

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi,

Thanks for replies of lbendlin  and Uzi2019  , and i want to offer some more information for user to refer to.

hello @Yogi785 , based on your desciption, you can consider to use Treemap, it can set the color.

You can refer to the following sample.

Sample data

vxinruzhumsft_1-1734576618951.png

Then you can create  a measure to calculate the percentage of each color.

Percentage% = DIVIDE(SUM('Table'[Value]),SUMX(ALLSELECTED('Table'),[Value]))

Then crete a measue to format the color.

Format = SELECTEDVALUE('Table'[Color])

Then create a treemap visual, and put the following field to the visual.

vxinruzhumsft_2-1734576839260.png

Then click advanced controls under 'colors'

vxinruzhumsft_3-1734576935518.png

and put the format measue to it.

vxinruzhumsft_4-1734576965446.png

Output 

vxinruzhumsft_5-1734577000984.png

Best Regards!

Yolo Zhu

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

5 REPLIES 5
Anonymous
Not applicable

Hi,

Thanks for replies of lbendlin  and Uzi2019  , and i want to offer some more information for user to refer to.

hello @Yogi785 , based on your desciption, you can consider to use Treemap, it can set the color.

You can refer to the following sample.

Sample data

vxinruzhumsft_1-1734576618951.png

Then you can create  a measure to calculate the percentage of each color.

Percentage% = DIVIDE(SUM('Table'[Value]),SUMX(ALLSELECTED('Table'),[Value]))

Then crete a measue to format the color.

Format = SELECTEDVALUE('Table'[Color])

Then create a treemap visual, and put the following field to the visual.

vxinruzhumsft_2-1734576839260.png

Then click advanced controls under 'colors'

vxinruzhumsft_3-1734576935518.png

and put the format measue to it.

vxinruzhumsft_4-1734576965446.png

Output 

vxinruzhumsft_5-1734577000984.png

Best Regards!

Yolo Zhu

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

 

Yogi785
Frequent Visitor

Hello, thanks for replies. In fact I want to associate color with data and amount. This is my dataset : 

Yogi785_1-1734506834777.png

 

We sell colored goods and I want those colors to be represented in the graphic. The grey RAL7016 #293133 is the best selling.

Thanks

Please provide sample data that covers your issue or question completely, in a usable format (not as a screenshot).
Do not include sensitive information. Do not include anything that is unrelated to the issue or question.
Please show the expected outcome based on the sample data you provided.

Need help uploading data? https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-...
Want faster answers? https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447...

Uzi2019
Community Champion
Community Champion

Hi @Yogi785 

 

You can manually set your pie chart color by using slicer setting option. 

 

Uzi2019_0-1734423152123.png

 

but you value itself is hexcolor value. it will not automatically map your hexvalue against hexcolor.

 

You have to do it manually.

 

I hope I answered your question!

 

 

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

A pie chart ?!?  Why ?!?  🙂

 

Please provide sample data that covers your issue or question completely, in a usable format (not as a screenshot).
Do not include sensitive information. Do not include anything that is unrelated to the issue or question.
Please show the expected outcome based on the sample data you provided.

Need help uploading data? https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-...
Want faster answers? https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447...

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.