cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

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
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors