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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.