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
Dannyd20
Regular Visitor

Chart requests vs assignments per week

Hi forum,

 

I am struggling with something that I think must be simple, but I can't seem to figure it out! 

I want to use Power Bi to chart requests vs assignments per week.

I have the dates requests were logged and the date they were assigned.

 

I want a chart to show per calendar week, how many requests came in that week and how many were assigned that week ?

 

Thanks

 

some sample data:

 

Logged:
03-Jul-23
03-Jul-23
03-Jul-23
03-Jul-23
03-Jul-23
03-Jul-23
03-Jul-23
03-Jul-23
03-Jul-23
03-Jul-23
03-Jul-23
03-Jul-23
03-Jul-23
03-Jul-23

 

Assigned:
11-Jul-23
04-Jul-23
11-Jul-23
11-Jul-23
11-Jul-23
11-Jul-23
04-Jul-23
04-Jul-23
11-Jul-23
04-Jul-23
11-Jul-23
11-Jul-23
11-Jul-23
04-Jul-23

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi  @Dannyd20 ,

 

Here are the steps you can follow:

1. Create calculated table.

You can create a calendar table and use Week as the x-axis in the calendar table.

Table 2 =
CALENDAR(
    DATE(2023,7,1),
    DATE(2023,7,31))

Create calculated column.

Week = WEEKNUM('Table 2'[Date],2)

vyangliumsft_0-1694675002297.png

2. Create measure.

Logged_Measure =
COUNTX(
    FILTER(ALL('Table'),
    YEAR('Table'[Logged])=YEAR(MAX('Table 2'[Date]))&&WEEKNUM('Table'[Logged],2)=MAX('Table 2'[Week])),[Logged])
Assigned_Measure =
COUNTX(
    FILTER(ALL('Table'),
    YEAR('Table'[Assigned])=YEAR(MAX('Table 2'[Date]))&&WEEKNUM('Table'[Assigned],2)=MAX('Table 2'[Week])),[Assigned])

3. Result:

vyangliumsft_1-1694675002304.png

 

 

Best Regards,

Liu Yang

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

1 REPLY 1
Anonymous
Not applicable

Hi  @Dannyd20 ,

 

Here are the steps you can follow:

1. Create calculated table.

You can create a calendar table and use Week as the x-axis in the calendar table.

Table 2 =
CALENDAR(
    DATE(2023,7,1),
    DATE(2023,7,31))

Create calculated column.

Week = WEEKNUM('Table 2'[Date],2)

vyangliumsft_0-1694675002297.png

2. Create measure.

Logged_Measure =
COUNTX(
    FILTER(ALL('Table'),
    YEAR('Table'[Logged])=YEAR(MAX('Table 2'[Date]))&&WEEKNUM('Table'[Logged],2)=MAX('Table 2'[Week])),[Logged])
Assigned_Measure =
COUNTX(
    FILTER(ALL('Table'),
    YEAR('Table'[Assigned])=YEAR(MAX('Table 2'[Date]))&&WEEKNUM('Table'[Assigned],2)=MAX('Table 2'[Week])),[Assigned])

3. Result:

vyangliumsft_1-1694675002304.png

 

 

Best Regards,

Liu Yang

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

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