Forum Discussion

sritheboss's avatar
sritheboss
Regular Visitor
1 year ago
Solved

Create a multihistogram with two different percentage fields

Blue line indicates histogram represents the % value and red line indicates the headcount info sample csv file attached can anyone help how to build this is visual in power BI

 

HeadcountGCB BandActual  %Modelled  %
20011521
21221622
22431723
23641824
24851925
26062026
  • Hi sritheboss ,

    Thank you for reaching out to us on the Microsoft Fabric Community Forum.


    After reviewing the issue,Power BI doesn't technically support "multihistograms" as seen in statistical tools, I believe what you're trying to achieve is a multi-series visual that compares headcount and percentage values side by side for each GCB Band essentially combining both bar and line chart elements in one view.

    You can create this using Power BI’s built-in Line and Clustered Column Chart. First, load your data with columns for GCB Band, Headcount, Actual %, and Modelled %. Then, use GCB Band as the X-axis. Assign Headcount to the column values, and both Actual % and Modelled % to the line values. This will give you a grouped visual where Headcount is shown as bars and the percentages are overlaid as lines on a secondary Y-axis. You can customize line colors, axis formatting, and labels for clarity.
    Please go through the pbix file which i have shared.

    If this post was helpful, please give us Kudos and consider marking Accept as solution to assist other members in finding it more easily.

4 Replies

  • Hi sritheboss Try these steps please 

    Create measures for %Modelled and %Actual using the AVERAGE or similar aggregation if needed.

    Use Line and Clustered Column Chart and then add the Headcount to the X-axis, the %Modelled as a column series, and %Actual as a line series.

    Customize the formatting to differentiate the lines and histogram colors.
    If this post helped please do give a kudos and accept this as a solution
    Thanks In Advance

  • v-menakakota's avatar
    v-menakakota
    Community Support

    Hi sritheboss ,

    Thank you for reaching out to us on the Microsoft Fabric Community Forum.


    After reviewing the issue,Power BI doesn't technically support "multihistograms" as seen in statistical tools, I believe what you're trying to achieve is a multi-series visual that compares headcount and percentage values side by side for each GCB Band essentially combining both bar and line chart elements in one view.

    You can create this using Power BI’s built-in Line and Clustered Column Chart. First, load your data with columns for GCB Band, Headcount, Actual %, and Modelled %. Then, use GCB Band as the X-axis. Assign Headcount to the column values, and both Actual % and Modelled % to the line values. This will give you a grouped visual where Headcount is shown as bars and the percentages are overlaid as lines on a secondary Y-axis. You can customize line colors, axis formatting, and labels for clarity.
    Please go through the pbix file which i have shared.

    If this post was helpful, please give us Kudos and consider marking Accept as solution to assist other members in finding it more easily.