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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Anonymous
Not applicable

mm-yyyy

Hi,

 

I have data as mentioned below table.

 

S.NoMonth-yearValue
112-20193
211-20195
310-20192
401-20196
512-20187
611-20181

 

Requiremnt  is, if i select month (12-2019) here  i need to display previous month and selected month difference( selected month - previous month) .  can you please help me on this.

 

Thanks !

 

Regards,

Srini.

5 REPLIES 5
harshnathani
Community Champion
Community Champion

Hi @Anonymous ,

 

Create a Column

 

 

Column = 
'Table'[Value] - MAXX(FILTER('Table', 'Table'[S.No]< EARLIER('Table'[S.No])), 'Table'[Value])

 

 

1.jpg

 

 

Regards,
Harsh Nathani
Did I answer your question? Mark my post as a solution! Appreciate with a Kudos!! (Click the Thumbs Up Button)

 

Anonymous
Not applicable

Hi @harshnathani ,

 

thank you for your response. but i dont have the date column. i have the month-year formate(mm-yyyy) and this is custome column as text format. please suggest me the approach.

 

Regards,

Srinivas.

Hi @Anonymous ,

 

You have the Index Number. Make sure are descending in nature from the earliest month in text format.

 

Regards,
Harsh Nathani
Did I answer your question? Mark my post as a solution! Appreciate with a Kudos!! (Click the Thumbs Up Button)

Anonymous
Not applicable

Hi,

 

is it possible with out index number, reason is i need to display the value month wise  in  bar chart.

 

Regards,

Srini

HI @Anonymous ,

 

You will need an index column to refer earlier dates.

 

Also since your date column is also text , this wil also not help.

 

See if this helps you

 

https://community.powerbi.com/t5/Community-Blog/Getting-Previous-Values-in-Power-BI-Part-1/ba-p/1143370

 

Regards,
Harsh Nathani
Did I answer your question? Mark my post as a solution! Appreciate with a Kudos!! (Click the Thumbs Up Button)

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

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