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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

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
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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