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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
ZSBolt4
New Member

User/Hours ; Date Slicer is removing users even with "Show items with no data" selected

Using list of work log users and values of Hours.  I want to see how many hours this month per the list of users.  However I can never see users with 0 timestamps within the month.  How do I make the list of users static and just update the hours when selecting my dates?

 

3 sets of data: Timestamp, Hours, Users.  Users enter hours and hours have a timestamp.  Sometimes users don't enter any hours and I want to catch those. 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @ZSBolt4 

You can refer to the following solution

Sample data 

vxinruzhumsft_0-1699325616837.png

 

Date table

vxinruzhumsft_1-1699325628653.png

 

Relationship

vxinruzhumsft_4-1699325730942.png

1.Create a user table to just input user to it.

vxinruzhumsft_3-1699325684410.png

2.Then can create a measure

Measure =
VAR a =
    CALCULATE (
        SUM ( 'Data'[hours] ),
        FILTER ( 'Data', [User] IN VALUES ( 'User'[User] ) )
    )
RETURN
    IF ( NOT ( ISBLANK ( a ) ), a, 0 )

3.Then create a column visual and put the user field of the user table to x-axis, and the measure to the y-axis

Output

vxinruzhumsft_5-1699325930192.png

Best Regards!

Yolo Zhu

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

 

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @ZSBolt4 

You can refer to the following solution

Sample data 

vxinruzhumsft_0-1699325616837.png

 

Date table

vxinruzhumsft_1-1699325628653.png

 

Relationship

vxinruzhumsft_4-1699325730942.png

1.Create a user table to just input user to it.

vxinruzhumsft_3-1699325684410.png

2.Then can create a measure

Measure =
VAR a =
    CALCULATE (
        SUM ( 'Data'[hours] ),
        FILTER ( 'Data', [User] IN VALUES ( 'User'[User] ) )
    )
RETURN
    IF ( NOT ( ISBLANK ( a ) ), a, 0 )

3.Then create a column visual and put the user field of the user table to x-axis, and the measure to the y-axis

Output

vxinruzhumsft_5-1699325930192.png

Best Regards!

Yolo Zhu

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

 

lbendlin
Super User
Super User

Please provide sample data (with sensitive information removed) that covers your issue or question completely, in a usable format (not as a screenshot). Leave out anything not related to the issue.
If you are unsure how to do that please refer to https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-...
Please show the expected outcome based on the sample data you provided.

If you want to get answers faster please refer to https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447...

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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
Top Kudoed Authors