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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Anonymous
Not applicable

Last 3 week and the cumulative since the beginning of the year

Hi,
I would like in this table to see only the last three weeks and the cumulative total from 1/1, do you know a way to remove the rest of the year from the display and keep the cumulative total value from 1/1?

 

Santi01_0-1667574671847.png

 

Thanks.

 

1 ACCEPTED SOLUTION
v-stephen-msft
Community Support
Community Support

Hi @Anonymous ,

 

First, you could create a measure below to return the cumulative total from 1/1.

cumulative since the beginning of the year = CALCULATE(SUM('Table'[Value]),FILTER(ALLSELECTED('Table'),[Date]<=MAX('Table'[Date])&&[Date]>=DATE(YEAR([Date]),1,1)))

vstephenmsft_0-1667811630521.png

Then set up show items  when the value is in the last 21 days.

vstephenmsft_1-1667811657582.png

 

Best Regards,

Stephen Tao

 

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
v-stephen-msft
Community Support
Community Support

Hi @Anonymous ,

 

First, you could create a measure below to return the cumulative total from 1/1.

cumulative since the beginning of the year = CALCULATE(SUM('Table'[Value]),FILTER(ALLSELECTED('Table'),[Date]<=MAX('Table'[Date])&&[Date]>=DATE(YEAR([Date]),1,1)))

vstephenmsft_0-1667811630521.png

Then set up show items  when the value is in the last 21 days.

vstephenmsft_1-1667811657582.png

 

Best Regards,

Stephen Tao

 

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

Anonymous
Not applicable

Hello, the three weeks must keep their value and not the cumulative, only the total must be a cumulative

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.