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
filippoalicicco
Frequent Visitor

sum week end value at monday

 

 

Good Monring experts!

 

I need help bucause I don't manage to create the mesaure in object.

 

I have a table with all days of week and i need to "sum" saturday and sunday on monday. I try with the suggestion in this tread https://community.powerbi.com/t5/Desktop/Sum-weekend-values-on-monday/td-p/189506 but it doesn't work.

 

Can we help me? I atttach the image

 

thank you

fil

 

 

pbix image.jpg

 

 

 

2 ACCEPTED SOLUTIONS

Hi and thank you for your answer!!

 

I have a problem with this peace of DAX:

 

FILTER (
                ALLSELECTED ( Table ),
                YEAR ( Table[Date] ) = YEAR ( currdate )
                    && WEEKNUM ( Table[Date] ) = WEEKNUM ( currDate, 1 )

 

When I write the YEAR DAX I can't insert table date. Is it normal???? 

View solution in original post

Anonymous
Not applicable

Hi @filippoalicicco,

 

>>When I write the YEAR DAX I can't insert table date. Is it normal???? 

Can you please share more detail? BTW, my formula is a measure. Which connection mode you test, is it direct query?

 

Regards,

Xiaoxin Sheng

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

Hi @filippoalicicco,

 

You can consider to use if statement with weekday function to get current date, then use it to filter and summary record.

Summary on Monday =
VAR currDate =
    MAX ( Table[Date] )
RETURN
    IF (
        WEEKDAY ( currDate, 2 ) = 1,
        CALCULATE (
            SUM ( Table[Amount] ),
            FILTER (
                ALLSELECTED ( Table ),
                YEAR ( Table[Date] ) = YEAR ( currdate )
                    && WEEKNUM ( Table[Date] ) = WEEKNUM ( currDate, 1 )
            )
        ),
        SUM ( Table[Amount] )
    )


Regards,

Xiaoxin Sheng

Hi @Anonymous 

Is it possible to do this as a column?

 

This is almost exactly what I have been hunting for, but I want to be able to look at this as a trend.

Hi and thank you for your answer!!

 

I have a problem with this peace of DAX:

 

FILTER (
                ALLSELECTED ( Table ),
                YEAR ( Table[Date] ) = YEAR ( currdate )
                    && WEEKNUM ( Table[Date] ) = WEEKNUM ( currDate, 1 )

 

When I write the YEAR DAX I can't insert table date. Is it normal???? 

Anonymous
Not applicable

Hi @filippoalicicco,

 

>>When I write the YEAR DAX I can't insert table date. Is it normal???? 

Can you please share more detail? BTW, my formula is a measure. Which connection mode you test, is it direct query?

 

Regards,

Xiaoxin Sheng

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