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

Adding Percentage to column

Hey guys, Need some help here. I want to add a 10% change in a previous row item of the column. I am not able to write it in Dax
1 REPLY 1
Anonymous
Not applicable

@Anonymous Please try below measure to add 10 % of previous sales to current sales. I'm assuming you are identifying the previous sales based on date. If it does work please share sample data

Expected = 
VAR _prevdate = CALCULATE(MAX('Table'[Date]),FILTER(ALL('Table'[Date]),'Table'[Date]<MAX('Table'[Date])))
VAR _prevsales = CALCULATE(SUM('Table'[Sales]),'Table'[Date]=_prevdate)*0.10
RETURN CALCULATE(SUM('Table'[Sales]))+_prevsales

rahul.png

Helpful resources

Announcements
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.

Top Solution Authors