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! Request now

Reply
thomazinh
Helper I
Helper I

Show Week ending date without all week day dates

I need to display the week ending date for each week without showing each date within the week. I have a measurement accurately categorizing each date by its week ending date. Weeks are Monday through Sunday, where Mondays indicate the start of the week. 

 

I would expect the following week ending dates to be: 

trx dateweek ending datedata
5/7/245/12/248
5/8/245/12/248
5/9/245/12/2410
5/10/245/12/248
5/11/245/12/2411
5/12/245/12/2412
5/13/245/19/248
5/14/245/19/248
5/15/245/19/2412
5/16/245/19/2412
5/17/245/19/2412
5/18/245/19/2410

 

 

I only want to show the week ending date in my table view. I'd expect it to be:

week ending datedata
5/12/2457
5/19/2462

 

However, my DAX is summing up BOTH weeks when I only include the week ending date DAX and not the trx date. This is what it returns: 

week ending datedata
5/19/24119

 

How can I write a DAX to display all instances of the week ending date without showing the trx date?

 

This is a certified dataset and I am not the dataset owner, so I do not have access to create a calculated column. Any help?

 

Here is my week ending code:

Weekday End of Week4 = CALCULATE( MAX('Table'[TrxDate]) - WEEKDAY(MAX('Table'[TrxDate]), 2) + 7, ALL('Table'[TrxDate]) )

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @thomazinh ,

 

You can create calculated table to get the most direct results.

Table 2 =
VAR table_ =
    SUMMARIZECOLUMNS ( 'Table'[week ending date] )
RETURN
    ADDCOLUMNS (
        table_,
        "a",
            CALCULATE (
                SUM ( 'Table'[data] ),
                ALLEXCEPT ( 'Table', 'Table'[week ending date] )
            )
    )

vkongfanfmsft_0-1716342433711.png

 

Best Regards,
Adamk Kong

 

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 @thomazinh ,

 

You can create calculated table to get the most direct results.

Table 2 =
VAR table_ =
    SUMMARIZECOLUMNS ( 'Table'[week ending date] )
RETURN
    ADDCOLUMNS (
        table_,
        "a",
            CALCULATE (
                SUM ( 'Table'[data] ),
                ALLEXCEPT ( 'Table', 'Table'[week ending date] )
            )
    )

vkongfanfmsft_0-1716342433711.png

 

Best Regards,
Adamk Kong

 

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

ryan_mayu
Super User
Super User

the table you provided contains measures?

 

could you pls provide some sample data?





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




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