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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
vadim_g
Frequent Visitor

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
Employee
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
Employee
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


genial =D i accept your solution !

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors