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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Reply
Anonymous
Not applicable

Draw the distribution in bins of a total per category

Hello, 

 

I hope that I'm not redundant. I tried to find an answer, but I could not ...

 

Let's say that I have a table like this :

Object_Id Observation_Id Value 
A10112
B

102

27
C1030
A1041
C105125
A10617

 

My first goal is to add values according to their Object_Id. This thing, I'm able to do it thanks to a Quick Measure - Total per Category. Then, I want to study the distribution of the values : I want to draw a histogram with in x-axis some bins of my values, and in y-axis the number of values in these bins, but with each Object_Id appaearing only once (and with the value of the per category total). This step, I couldn't do it properly.

 

My first idea was to create a sub-table with the results of my first goals. But when, by necessity, I have to add a filter on Observation_Id (for example, using only observations with and Id > 103), the sums are still on all observations and not on the sub-selection that I wanted (I do this one by selecting a time range on a Time Brush graph). How could I do it correctly ?

 

Thank you for your time.

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous ,

 

Create a column instead of a measure:

sum of each Object_Id = CALCULATE(SUM('Table'[Value]),ALLEXCEPT('Table','Table'[Object_Id]))

Then you could use the column as x-axis and count of ID as value:

vjaywmsft_0-1652690888843.png

 

Best Regards,

Jay

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Hi @Anonymous ,

 

Create a column instead of a measure:

sum of each Object_Id = CALCULATE(SUM('Table'[Value]),ALLEXCEPT('Table','Table'[Object_Id]))

Then you could use the column as x-axis and count of ID as value:

vjaywmsft_0-1652690888843.png

 

Best Regards,

Jay

Anonymous
Not applicable

Hello, thank you for your answer !

On the Min of Object_ID by Value graph, I was more thinking of a graph that use only the sum of each Object_Id, for example something like that with my data :

 

Harry_Podterre_0-1652105660003.png

But this graph updating if I use a slicer to select only some Observation_Id, so modifying the sums.

 

Thank you again !

 

Whitewater100
Solution Sage
Solution Sage

Hi:

Is this what you are looking for? I hope this helps..

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

Whitewater100_0-1652104651297.png

 

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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