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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

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.