cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
alecsonline Regular Visitor
Regular Visitor

Reporting values with sliding dates using a slicer to define how many days before or after

Hi all,

I have a very simple report: values for each day of the year.

 

My needing is:

beside the column with the values of the single date, I have to show the values related to a different day, that can be 1 or 2 or 3 or.... days before or after.

 

That means that the report user should have the possibility, using a slicer, to define "how many days" before or after.

I.E. looking at the value of 15th August, I want to able to show the value of the 12th August, if flagged "-3" in the related slicer.

 

Tried many ways, many many hours of tentatives without success.

 

PLEASE FIND PBIX FILE AT THIS LINK:

 

https://www.dropbox.com/s/5jjvnszhsmgtqsk/Test%20allineamento%20date.pbix?dl=0

Also following image as example:

Slicing dates.JPG

 

Thank you all for any help.

Alessandro

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: Reporting values with sliding dates using a slicer to define how many days before or after

Hi @alecsonline ,

 

Please refer to measure:

N days before/after =
CALCULATE (
    [VALUE],
    FILTER (
        ALLSELECTED ( 'Calendar' ),
        'Calendar'[Date]
            = MAX ( 'Calendar'[Date] ) + [maxdayschangng]
    )
)

1.PNG

Best regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
1 REPLY 1
Community Support Team
Community Support Team

Re: Reporting values with sliding dates using a slicer to define how many days before or after

Hi @alecsonline ,

 

Please refer to measure:

N days before/after =
CALCULATE (
    [VALUE],
    FILTER (
        ALLSELECTED ( 'Calendar' ),
        'Calendar'[Date]
            = MAX ( 'Calendar'[Date] ) + [maxdayschangng]
    )
)

1.PNG

Best regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.