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

Difference Calculation Error for Periods

Hi Experts

See Sample Data - I am trying to work out the diference month on month starting at M0

My Measure give me

M0 M1 M2 M3

202 10.1 29.3 55.2

the Step M0-M1 is correct, Then its doing M0-M2 as opposed to M1-M2, and M0-M3 as opposed to M2-M3....

My Dax Measures are

1. Paydown = [Value]*[Percentage] (where i am getting the Max for the value and Percentage column)

 

2. Balance Paydown =
VAR _prevdate = Lastnonblank(
Filter(All('Input'[M Column]), 'Input'[M Column]>= SelectedValue('Input'[M Column])
),
[Paydown])

Return

Calculate([Paydown],'Input'[M Column]<=_prevdate)

 

Then a New Measure

Bal = if([Maxcolumn] = "M0", [Paydown], [Balance Paydown]-[Paydown])

 

Expected Result PS Calculated Column well not work as this is a subset of a bigger picture with more products

Capture.PNG

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Anonymous , Please find the attached file after signature

 

 

View solution in original post

1 REPLY 1
amitchandak
Super User
Super User

@Anonymous , Please find the attached file after signature

 

 

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.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.