cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
324
Helper I
Helper I

Aggregate totals in histogram chart

I have a Tableau histogram I want to replicate in Power BI showing project number groupings. Projects receive a new project number each fiscal year, but there is an identifier column that groups these projects together. For example, a continuing project in 2019, 2020, and 2021 could have three distinct project numbers, but are grouped together by one indicator value.

 

I used this calculation in Tableau: 

{FIXED [Project Identifier]:COUNTD([Project Number])}

 

Does PowerBI support level-of-detail calculations like this? If so, how could I make a frequency bar chart like what I described above? Thank you.

3 REPLIES 3
v-yangliu-msft
Community Support
Community Support

Hi  @324 ,

I created some data:

vyangliumsft_0-1664244422318.png

Here are the steps you can follow:

1. In Power Query – check [project number] – [Split Column].

vyangliumsft_1-1664244422323.png

2. Select the new three columns – Unpivot Column.

vyangliumsft_2-1664244422327.png

Result:

vyangliumsft_3-1664244422329.png

3. Result:

vyangliumsft_4-1664244422336.png

If this method does not meet your needs, you can provide us with your special sample data and the desired output sample data in the form of tables, so that we can better help you solve the problem.

 

Best Regards,

Liu Yang

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

@v-yangliu-msft Here is some test data to make myself more clear.

 

Project NumberEnduring Project Identifier
123456324
234567324
345678324
456789476
567890476
678901495
789012496
890123202
901234202

Hi @v-yangliu-msft, thanks for much. That is close to what I want, but not quite. Would it be difficult to make it look like this? Sorry if my description was not clear.

image.png

Helpful resources

Announcements
Carousel_PBI_Wave1

2023 Release Wave 1 Plans

Power BI release plans for 2023 release wave 1 describes all new features releasing from April 2023 through September 2023.

Power BI Summit Carousel 2

Global Power BI Training

Make sure you register today for the Power BI Summit 2023. Don't miss all of the great sessions and speakers!

Thank you 2022 Review

2022 Monthly Feature Releases

We had a great 2022 with a ton of feature releases to help you drive a data culture.