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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

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
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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