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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric 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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.