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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
dhirajd
Regular Visitor

DAX measure for calculating SUM of carry forward tickets at the end of week.

I want to calculate the sum of 'carry forward tickets' but only for the EndOfWeek date. We are using it in a bar graph to show the 'carry forward tickets' at the end of week.

I did something like this:

CarryForwardTicketsWeekEnd =
SUMMARIZE(
    FILTER(carry_forward, carry_forward[Date] = dim_date[End of Week Date]),
    dim_date[
End of Week Date],
    "Carry Forward Tickets",
SUM(carry_forward[carry_forward_tickets])
)

 

This does not work as DAX measure is not recognizing the  dim_date[End of Week Date] for filtering.

I have two tables dim_date which is Date table and carry_forward table which has 2 columns: 1) calendar_date, 2) carry_forward_tickets.

I thought of creating "End of Week" column in the carry_forward table itself but in the bar graph we are using dim_date[dates] on X axis.
They are connected properly with dim_date on one side and carry_forward table on many side with single filter.

1 REPLY 1
johnt75
Super User
Super User

Try

Carry Forward Tickets Weekend =
VAR WeekEnd =
    MAX ( 'dim_date'[End of week] )
RETURN
    CALCULATE (
        SUM ( carry_forward[carry_forward_tickets] ),
        REMOVEFILTERS ( 'dim_date' ),
        'dim_date'[End of week] = WeekEnd
    )

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.