Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.
Hello All,
Can anyone please provide DAX to apply in measure for the below DAX which is applied in Added Column.
Solved! Go to Solution.
@krishak77 Try:
FRSOTAT =
VAR CurrentRow = MAX('Distinct SOTAT'[Row_Number]) // Replace 'YourTable' with the actual name of your table and 'Index' with your table's index column
VAR PreviousRowValueD = CALCULATE(MAX('Distinct SOTAT'[FRper]), FILTER('Distinct SOTAT', 'Distinct SOTAT'[Row_Number] = CurrentRow + 1))
VAR PreviousRowValueA = CALCULATE(MAX('Distinct SOTAT'[Sotat]), FILTER('Distinct SOTAT', 'Distinct SOTAT'[Row_Number] = CurrentRow + 1))
RETURN
IF(CurrentRow >=1 && 'Distinct SOTAT'[FRper] < 0.9 && PreviousRowValueD >= 0.9, 'Distinct SOTAT'[Sotat] + (PreviousRowValueA - 'Distinct SOTAT'[Sotat]) * (0.9 - ('Distinct SOTAT'[FRper])) / (PreviousRowValueD - ('Distinct SOTAT'[FRper])), 0
Hi @krishak77 ,
Did the above suggestions help with your scenario? if that is the case, you can consider Kudo or Accept the helpful suggestions to help others who faced similar requirements.
If these also don't help, please share more detailed information and description to help us clarify your scenario to test.
How to Get Your Question Answered Quickly
Regards,
Xiaoxin Sheng
@krishak77 Try:
FRSOTAT =
VAR CurrentRow = MAX('Distinct SOTAT'[Row_Number]) // Replace 'YourTable' with the actual name of your table and 'Index' with your table's index column
VAR PreviousRowValueD = CALCULATE(MAX('Distinct SOTAT'[FRper]), FILTER('Distinct SOTAT', 'Distinct SOTAT'[Row_Number] = CurrentRow + 1))
VAR PreviousRowValueA = CALCULATE(MAX('Distinct SOTAT'[Sotat]), FILTER('Distinct SOTAT', 'Distinct SOTAT'[Row_Number] = CurrentRow + 1))
RETURN
IF(CurrentRow >=1 && 'Distinct SOTAT'[FRper] < 0.9 && PreviousRowValueD >= 0.9, 'Distinct SOTAT'[Sotat] + (PreviousRowValueA - 'Distinct SOTAT'[Sotat]) * (0.9 - ('Distinct SOTAT'[FRper])) / (PreviousRowValueD - ('Distinct SOTAT'[FRper])), 0
| User | Count |
|---|---|
| 11 | |
| 9 | |
| 8 | |
| 7 | |
| 6 |