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

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

Top Solution Authors