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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

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
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors