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

Get certified in Microsoft Fabric—for free! For a limited time, the Microsoft Fabric Community team will be offering free DP-600 exam vouchers. Prepare now

Reply
Anonymous
Not applicable

How to return a previous measures cell value

Hi everyone, I have a table using measures to create calculated values. Ok, nothing new. The table is organized by a "Month Year" column ( I don't have a date field in the table).  I do have a month number column. I want a third column (via a measure) that will replicate the previous month's value. I cant index the table as the Month Year values are not unique. Please see the table below to see what I need. Thank you very much for your help.

 

Month YearMeasure ValuePrevious Measure Value
Aug 2016

25

 
Sep 20164225
Oct 20161742
Nov 20163617
Dec 2016536
Jan 2017625
1 ACCEPTED SOLUTION
Anonymous
Not applicable

everyone, I found a soultion that I want to share... here is the Measure with the working solution:

 

CALCULATE(COUNT('Monthly Data'[File Number]), 'Monthly Data'[Number of days of delinquency] = 0,
'Monthly Data'[Accounting Status] <> "Charge Off - Bankruptcy" &&
'Monthly Data'[Accounting Status] <> "Charge Off - Consumer Proposal" &&
'Monthly Data'[Accounting Status] <> "Charge Off - Fraud" &&
'Monthly Data'[Accounting Status] <> "Charge Off - Deceased",
--THE TOPN IS WHERE THE MAGIC HAPPENS!!!
TOPN(1,FILTER(ALLSELECTED('Monthly Data'),'Monthly Data'[Source Previous Month Calc] < MAX('Monthly Data'[Source Previous Month Calc])),'Monthly Data'[Source Previous Month Calc], DESC)

View solution in original post

1 REPLY 1
Anonymous
Not applicable

everyone, I found a soultion that I want to share... here is the Measure with the working solution:

 

CALCULATE(COUNT('Monthly Data'[File Number]), 'Monthly Data'[Number of days of delinquency] = 0,
'Monthly Data'[Accounting Status] <> "Charge Off - Bankruptcy" &&
'Monthly Data'[Accounting Status] <> "Charge Off - Consumer Proposal" &&
'Monthly Data'[Accounting Status] <> "Charge Off - Fraud" &&
'Monthly Data'[Accounting Status] <> "Charge Off - Deceased",
--THE TOPN IS WHERE THE MAGIC HAPPENS!!!
TOPN(1,FILTER(ALLSELECTED('Monthly Data'),'Monthly Data'[Source Previous Month Calc] < MAX('Monthly Data'[Source Previous Month Calc])),'Monthly Data'[Source Previous Month Calc], DESC)

Helpful resources

Announcements
OCT PBI Update Carousel

Power BI Monthly Update - October 2024

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

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

October NL Carousel

Fabric Community Update - October 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors