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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Marketa01
Regular Visitor

Creating Bell Graph responsive to slicers for Total Learning Hours per Employee

Hello all,

 

one of the "must have" requested by my report consumers is to create a Bell Chart that will show Distribution of total learning hours by unique employees (ID) that would be responsive to the slicer for Fiscal Year, Quarter, Month.
Total Lerning Hours should be categorized in buckets 0-10, 10-20, ... 100-110, and so on in ascending order.

 

I do have a respective Calendar Table for Fiscal Year Calucaltions since the starting month for fiscal year is September.
Relationship is set as follows and for all other used visualisations/measures works fine.

Marketa01_2-1707327133446.png


The following is sample of FACT Data table.
'FACT_report'

GIDStatusLearning Activity IDStart DateEnd DateDuration Hours
TM01Completed8823301701/13/202402/13/20231,00
TM01Completed9043221506/01/202306/01/20231,50
TM01Completed9071167506/14/202306/14/20231,50
TM01Completed9070962506/14/202306/14/20231,50
TM01Completed9114557006/29/202306/29/20231,50
TM01In Progress9146948607/12/202307/12/20231,50
TM01Canceled9331102907/19/202307/20/20230,67
TM02Completed9045273906/02/202306/02/20235,00
TM02Completed9325554506/06/202306/06/20230,50
TM02Completed9325554606/06/202306/06/20230,50
TM02Completed9079616306/16/202306/16/20230,67
TM02Completed9085993506/20/202306/20/20230,25
TM03Completed8778150101/05/202401/19/20230,42
TM03Completed8790116801/03/202401/26/20230,83
TM03Completed8820494202/09/202302/09/20230,50
TM03Completed8831896902/10/202302/10/20230,67
TM03Completed8860651003/01/202303/01/20230,50
TM03Completed8866119603/02/202303/02/20230,50
TM03In Progress8876896203/07/202303/07/20231,50
TM03In Progress8887770703/15/202303/15/20230,75
TM03Completed8903731403/21/202303/21/20232,00
TM03Completed8984902004/17/202304/17/20230,83
TM03Completed8977001604/24/202304/24/20231,50
TM03Completed8984732004/27/202304/27/20230,83
TM03Completed8999046905/04/202305/04/20231,00
TM04Completed8913484301/01/202402/01/20230,50
TM04Completed8826650102/15/202302/15/20231,00
TM04Completed8933923003/06/202303/06/20232,00
TM04Completed8887021703/14/202303/14/20231,17
TM04Completed8910559303/15/202303/15/20230,67
TM05Completed8939491204/03/202304/03/20231,67
TM05In Progress8965210904/11/202304/11/20230,67
TM05Completed9021582405/18/202305/18/20236,00
TM05Completed9116327406/01/202306/30/20232,33
TM05Completed9353467007/01/202307/31/20230,50
TM05Completed9427900507/18/202308/15/202310,00
TM05Completed9512062508/01/202308/31/20230,50
TM05Completed9513314809/12/202309/12/20232,00
TM05Completed9577550509/21/202309/22/202316,00
TM05Completed9652006710/02/202310/05/202316,00
TM05Completed9895081111/02/202311/02/20230,67
TM05Completed10181848812/20/202312/20/20230,50

 

The outcome should be this:
X Axis - buckets of Total Learning Hours, Min "0-10", Max "400+", Increment 10
Y Axis - Number of unique employee ID 
Only Learnings in status Completed Should be taken into the account.

Marketa01_1-1707326964995.png


I have tried to follow this approach https://radacad.com/customers-grouped-by-the-count-of-their-orders-dynamic-segmentation-in-power-bi-... however this is quite advanced for me and not giving me the results similar to above picture.

Appreaciate if you can support me how to achive the requested outcome. Unfortunately, checking with several internet sources doesn´t provide the instructions I would be able to follow to achieve this.

Thank you!

4 REPLIES 4
Marketa01
Regular Visitor

Sample data:

Content Category (Level 1)GIDOrgCodeLocationStatusStart DateDuration Hours
Interpersonal & PersonalZ004F80TDepartment25PRG SCompleted05/01/20230,25
Technology & MarketZ004F80TDepartment25PRG SCompleted05/03/202310,45
LeadershipZ004F80TDepartment25PRG SCompleted05/03/20231,86
Technology & MarketZ004F80TDepartment25PRG SCompleted05/05/202317,67
Technology & MarketZ004F80TDepartment25PRG SCompleted05/06/202312,31
Technology & MarketZ004F80TDepartment25PRG SCompleted05/14/202310,99
Technology & MarketZ004F80TDepartment25PRG SCompleted05/22/20231,25
Function & MethodsZ004F80TDepartment25PRG SCompleted05/22/20230,20
Function & MethodsZ004F80TDepartment25PRG SCompleted06/29/20230,50
Interpersonal & PersonalZ004F80TDepartment25PRG SCompleted08/20/20230,25
LeadershipZ004F80TDepartment25PRG SCompleted08/20/20230,17
Interpersonal & PersonalZ004F80TDepartment25PRG SCompleted08/20/20230,25
Technology & MarketZ004F80TDepartment25PRG SCompleted08/20/20230,25
LeadershipZ004F80TDepartment25PRG SCompleted09/05/20230,25
LeadershipZ004F80TDepartment25PRG SCompleted09/05/20230,25
LeadershipZ004F80TDepartment25PRG SCompleted09/05/20230,25
Interpersonal & PersonalZ004F80TDepartment25PRG SCompleted09/19/20230,25
Interpersonal & PersonalZ004F80TDepartment25PRG SCompleted10/03/20230,37
Technology & MarketZ004F80TDepartment25PRG SCompleted10/16/20230,13
Function & MethodsZ004F80TDepartment25PRG SCompleted10/19/20231,00
Function & MethodsZ004F80TDepartment25PRG SCompleted10/26/20230,67
Technology & MarketZ004F80TDepartment25PRG SCompleted10/28/20230,38
Interpersonal & PersonalZ004F80TDepartment25PRG SCompleted11/20/20230,25
Interpersonal & PersonalZ004F80TDepartment25PRG SCompleted11/20/20230,25
Interpersonal & PersonalZ004F80TDepartment25PRG SCompleted11/20/20230,25
Interpersonal & PersonalZ004F80TDepartment25PRG SCompleted11/20/20230,25
Interpersonal & PersonalZ004F80TDepartment25PRG SCompleted11/20/20230,25
Interpersonal & PersonalZ004F80TDepartment25PRG SCompleted11/20/20230,25
Interpersonal & PersonalZ004F80TDepartment25PRG SCompleted11/20/20230,25
Interpersonal & PersonalZ004F80TDepartment25PRG SCompleted11/20/20230,25
Interpersonal & PersonalZ004F80TDepartment25PRG SCompleted11/20/20230,25
LeadershipZ004F80TDepartment25PRG SCompleted11/20/20230,25
Function & MethodsZ004F80TDepartment25PRG SCompleted12/22/20230,50
Function & MethodsZ004F80TDepartment25PRG SCompleted01/12/20241,00
Function & MethodsZ004F80TDepartment25PRG SCompleted01/29/20240,60
Anonymous
Not applicable

Hi @Marketa01 

 

Can you provide detailed sample pbix file and the results you expect.So that I can help you better. Please remove any sensitive data in advance.

 

Best Regards,

Jayleny

Hello Jayleny,
any help with the data I was able to provide ?
Thanks,
Marketa

Hi Jayleny,

 

unfortuantely, I am not able to attach .pbix file here, the option is not enabled for me.
Sample data are below.
In addition I have created a calculated column in PBI (code below), but it is static calculation. I need it to be dynamic based on the filtering.
For example:
User Z004F80T for unfiltered data falls under category 60-70, but for filtered data Fiscal year 2024 (meaning October 2023-September 2024) he should fall under category 0-10.
The result should have outcome in this visualization:

Marketa01_0-1707486304265.png

 

CALCULATED COLUMN CODE:

CategoryAssigned =
VAR TotalHours = CALCULATE(
    SUM('FACT_Report'[Duration hours]),
    ALLEXCEPT(FACT_Report,FACT_Report[GID])
)

RETURN
SWITCH(
    TRUE(),
    TotalHours >= 0 && TotalHours < 10, "0-10",
    TotalHours >= 10 && TotalHours < 20, "10-20",
    TotalHours >= 20 && TotalHours < 30, "20-30",
    TotalHours >= 30 && TotalHours < 40, "30-40",
    TotalHours >= 40 && TotalHours < 50, "40-50",
    TotalHours >= 50 && TotalHours < 60, "50-60",
    TotalHours >= 60 && TotalHours < 70, "60-70",
    TotalHours >= 70 && TotalHours < 80, "70-80",
    TotalHours >= 80 && TotalHours < 90, "80-90",
    TotalHours >= 90 && TotalHours < 100, "90-100",
    TotalHours >= 100 && TotalHours < 110, "100-110",
    TotalHours >= 110 && TotalHours < 120, "110-120",
    TotalHours >= 120 && TotalHours < 130, "120-130",
    TotalHours >= 130 && TotalHours < 140, "130-140",
    TotalHours >= 140 && TotalHours < 150, "140-150",
    TotalHours >= 150 && TotalHours < 160, "150-160",
    TotalHours >= 160 && TotalHours < 170, "160-170",
    TotalHours >= 170 && TotalHours < 180, "170-180",
    TotalHours >= 180 && TotalHours < 190, "180-190",
    TotalHours >= 190 && TotalHours < 200, "190-200",
    TotalHours >= 200 && TotalHours < 210, "200-210",
    TotalHours >= 210 && TotalHours < 220, "210-220",
    TotalHours >= 220 && TotalHours < 230, "220-230",
    TotalHours >= 230 && TotalHours < 240, "230-240",
    TotalHours >= 240 && TotalHours < 250, "240-250",
    TotalHours >= 250 && TotalHours < 260, "250-260",
    TotalHours >= 260 && TotalHours < 270, "260-270",
    TotalHours >= 270 && TotalHours < 280, "270-280",
    TotalHours >= 280 && TotalHours < 290, "280-290",
    TotalHours >= 290 && TotalHours < 300, "290-300",
    TotalHours >= 300 && TotalHours < 310, "300-310",
    TotalHours >= 310 && TotalHours < 320, "310-320",
    TotalHours >= 320 && TotalHours < 330, "320-330",
    TotalHours >= 330 && TotalHours < 340, "330-340",
    TotalHours >= 340 && TotalHours < 350, "340-350",
    TotalHours >= 350 && TotalHours < 360, "350-360",
    TotalHours >= 360 && TotalHours < 370, "360-370",
    TotalHours >= 370 && TotalHours < 380, "370-380",
    TotalHours >= 380 && TotalHours < 390, "380-390",
    TotalHours >= 390 && TotalHours < 400, "390-400",
    TotalHours >= 400, "400+",
    "N/A"
)

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

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