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

I want previous 3 days records

RJ2597_0-1666088819092.jpeg

 Hello i try this but its not working i have one coloum of this periods but i want which i posted on screenshot.

Activated Previous Period = CALCULATE(sum('old custom SQL'[activated users this period]),DATESBETWEEN('Date'[Date],TODAY()-3,TODAY()))
1 ACCEPTED SOLUTION
v-henryk-mstf
Community Support
Community Support

Hi @RJ2597 ,

 

In my test everything works fine, refer to the following formula.

M =
CALCULATE (
    SUM ( 'Table'[Value] ),
    DATESBETWEEN ( 'Table'[Date], TODAY () - 3, TODAY () )
)

vhenrykmstf_0-1666173330925.png

If the problem is still not resolved, please provide detailed error information and let me know immediately. Looking forward to your reply.

 

Best Regards,
Henry


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-henryk-mstf
Community Support
Community Support

Hi @RJ2597 ,

 

In my test everything works fine, refer to the following formula.

M =
CALCULATE (
    SUM ( 'Table'[Value] ),
    DATESBETWEEN ( 'Table'[Date], TODAY () - 3, TODAY () )
)

vhenrykmstf_0-1666173330925.png

If the problem is still not resolved, please provide detailed error information and let me know immediately. Looking forward to your reply.

 

Best Regards,
Henry


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

Hello @v-henryk-mstf  i try this but in my date slicer i use relative date and i selected 2 dates the value is not showing corrct 

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.