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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
omkarsawant30
Frequent Visitor

Calendar Date filter not working as expected, how to resolve this issue

Context -> I have 2 Tables - HR Talk Forms and User. HR Talk Forms contain one row each for every HR Talk taken place between Employee and HR POC. User table consists of data of all active employees working in the company. 

 

Requirement -> Create 100% stacked bar charts to analyse the completion % of HR talk forms by different fields like Department, Country, etc. User should be able to filter Year (Eg. 2023 or 2024) and Half year (Eg. H1 or H2) to see the results.

 

Situation - > Since HR Talk Forms table contains data of only completed HR talks, its date field cannot be used to filter data for the requirement, so i created a Calendar table, so that i can have a date field , but when i apply it, it shows 100% for completions for all Departments or Countries, which is incorrect. 

Please see the attached data model and chart designed. Kindly help me on this issue.
HR Talks model.png
HR Talks chart issue.png

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@omkarsawant30 , You need a table to give total employees by department/date and use that measure to create a % measure and use that in clustered bar visual

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

4 REPLIES 4
amitchandak
Super User
Super User

@omkarsawant30 , You need a table to give total employees by department/date and use that measure to create a % measure and use that in clustered bar visual

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Thanks @amitchandak ! Based on the reply , i created a new table by mapping all dates of year 2023 and 2024 with all Employee ID, department, country and Talent coordinator. The solution has worked, using distinct count of Employee ID in the charts.

DateEmployeeMapping =
CROSSJOIN(
    SUMMARIZE(
        FILTER('User', 'User'[EmployeeStatus] = "Active"),
        'User'[UserId], 'User'[Department], 'User'[TalentCoordinator], 'User'[Country]
    ),
    GENERATESERIES(DATE(2023, 1, 1), DATE(2024, 12, 31), 1)
)
Anonymous
Not applicable

Hi @omkarsawant30 ,

Can you please share a pbix or some dummy data that keep the raw data structure with expected results? It should help us clarify your scenario and test to coding formula.

How to Get Your Question Answered Quickly  

Regards,

Xiaoxin Sheng

@Anonymous Sure but i dont see any option in the reply section to attach excel files. Kindly guide.

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors