Forum Discussion

Vexorg's avatar
Vexorg
New Member
3 years ago

Clustered Bar Chart with dual Labels (Sum + Count)

Hello PowerBI Community,


I am a new user transitioning from Tableau. I have a seemingly easy task but I have been unable to figure it out.

I am trying to create a clustered bar chart which has two labels (total and count of deals). I am easily able to create the bar chart and display the totals, however I am unable to add the second label. 

 

PBIX here: https://www.dropbox.com/s/jd2sv8hc27ndykj/help123.pbix?dl=0

 

I want to include the count of commitments on each bar. The end result would be the chart below but in bar chart format:

 

ABC672
DEF3001
EFG1603
HIJ1805
KLM1102

 

 

Here is the raw data:

 

FundDealsCommitment
ABCDeal A30
ABCDeal B37
DEFDeal C300
EFGDeal D100
EFGDeal E20
EFGDeal F40
HIJDeal G20
HIJDeal H30
HIJDeal I40
HIJDeal J70
HIJDeal K20
KLMDeal L50
KLMDeal M60



Any help would be appreciated. 

3 Replies

  • Vexorg  First of all welcome to this community.
    On your query, You can add fields in tooltip section of any chart. Attaching screen shot for your reference.

     

     

  • Arul's avatar
    Arul
    Super User

    Vexorg ,

    You can have only one either of sum of commitment of the count of deals in Y-axis if you are adding Fund in the legend field but if you removes the legend you are able to add as many as measure values in the Y-axis.
    If you need legend then you are allowed to have only one measure value in Y-axis, so you can make use of tooltip option to show the count.

    Thanks,

    Arul

  • You can create a summarized table with the following formula:

    Summarize Table = SUMMARIZE(ALL(Funds), Funds[Fund],"Count",CALCULATE(DISTINCTCOUNTNOBLANK(Funds[Deals]),ALLEXCEPT(Funds,Funds[Fund])),"Sum",CALCULATE(SUM(Funds[Commitment]),ALLEXCEPT(Funds,Funds[Fund])))