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
Anonymous
Not applicable

Previous Row Text value of subgroup in coloumn

Hi,

As can be seen the pic below, there are subgroups of number. What i want is that for a particular incident, the subsequent row shall give the previous row value in a new coloumn, when sorted in date wise order ( for the same i have created Index col too!).

The formula which i use for fetching previous text value is as per the pic below, but is also capturing indexes of oter Number coloumn and giving way off results.

Please help the Power BI Community

 

Untitled.pngCapture.PNG

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

hey, found the solution. Posting here so that it can help fellows in future if they face similar issue.

 

PreviousText1 = CALCULATE(MAX('Previous Row'[Value]),FILTER(ALLEXCEPT('Previous Row','Previous Row'[Number]),'Previous Row'[Index]=EARLIER('Previous Row'[Index])-1))

 

View solution in original post

1 REPLY 1
Anonymous
Not applicable

hey, found the solution. Posting here so that it can help fellows in future if they face similar issue.

 

PreviousText1 = CALCULATE(MAX('Previous Row'[Value]),FILTER(ALLEXCEPT('Previous Row','Previous Row'[Number]),'Previous Row'[Index]=EARLIER('Previous Row'[Index])-1))

 

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.