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
September Update

Check it Out!

Click here to learn more about the September 2022 updates!

Power BI Show episode 9

The Power BI Community Show

Watch the playback when Priya Sathy and Charles Webb discuss Datamarts! Kelly also shares Power BI Community updates.

Power BI Dev Camp Session 26

New Date - Check it Out!

Mark your calendars and join us on Thursday, October 6 at 11a PDT for a great session with Ted Pattison!

Top Solution Authors