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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

histogram : color each terms before summation

hello,

it seems very simple, but i really don't knwo how to do this...

I have this data :

vadim_g_1-1637933126581.png

 

In powerbi i can do this (really simple) :

vadim_g_2-1637933164316.png

but i want this (if the merge by name contains several terms of duration (as the name C3) each terms of supbart before summation must have a different color) :

vadim_g_3-1637933248917.png

 

Thanks a lot (and sorry for my english if you dont understand).

 

 

1 ACCEPTED SOLUTION
mahoneypat
Microsoft Employee
Microsoft Employee

In your query, you can add a subgroup index column and then use it as the legend in your visual (you can then hide the legend as it won't have any meaning).  See article for how to do it.

Create Row Number for Each Group in Power BI using Power Query - RADACAD

 

Pat





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


View solution in original post

2 REPLIES 2
mahoneypat
Microsoft Employee
Microsoft Employee

In your query, you can add a subgroup index column and then use it as the legend in your visual (you can then hide the legend as it won't have any meaning).  See article for how to do it.

Create Row Number for Each Group in Power BI using Power Query - RADACAD

 

Pat





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


Anonymous
Not applicable

genial =D i accept your solution !

 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.