cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
amrosullivan
Frequent Visitor

return selected date less n value for available dates

hello, i am at my witts end!

 

i have a calendar table - i am using the dates as a slicer

i have a fact table with columns - reporting date (these are not continious dates), Attribute 1 and value 1

 

i want to be able to select a date from the slicer (calendar dim date) and return value 1 from the previous row of the fact table. and then create another measure to return the value 1 from the selected date less 2 rows from teh fact table and so on update 5 rows.

 

this essentially means i want to dynamically return the previous value, the selected value - 1 row, the selected value - 2 row, the selected value - 3 row and so on... 

 

please could someone help with how to do this?

 

thank you!!

1 ACCEPTED SOLUTION
amrosullivan
Frequent Visitor

the calculation worked by creating an index column on the facr table and then creating measures for max value, selected index - n

View solution in original post

2 REPLIES 2
amrosullivan
Frequent Visitor

the calculation worked by creating an index column on the facr table and then creating measures for max value, selected index - n

v-cgao-msft
Community Support
Community Support

Hi @amrosullivan ,

 

Still a little lost, I created a simple model, can you give an example of the calculation process using the model?

 

Best Regards,
Gao

Community Support Team

 

If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly -- How to provide sample data

Helpful resources

Announcements
November 2022 Update

Check it Out!

Click here to read more about the November 2022 updates!

Microsoft 365 Conference â__ December 6-8, 2022

Microsoft 365 Conference - 06-08 December

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.