cancel
Showing results for
Search instead for
Did you mean:

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

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 Year Measure Value Previous Measure Value Aug 2016 25 Sep 2016 42 25 Oct 2016 17 42 Nov 2016 36 17 Dec 2016 5 36 Jan 2017 62 5
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)
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

#### Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

#### Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

#### The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors