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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

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
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.