Forum Discussion

324's avatar
324
Icon for Helper I rankHelper I
3 years ago

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

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi  324 ,

    I created some data:

    Here are the steps you can follow:

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

    2. Select the new three columns – Unpivot Column.

    Result:

    3. Result:

    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

    • 324's avatar
      324
      Icon for Helper I rankHelper I

      Hi Anonymous, 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.

    • 324's avatar
      324
      Icon for Helper I rankHelper I

      Anonymous Here is some test data to make myself more clear.

       

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