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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply

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 @SrinivasaRao5_ ,

 

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)

 

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 @SrinivasaRao5_ ,

 

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)

Hi,

 

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

 

Regards,

Srini

HI @SrinivasaRao5_ ,

 

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/1143...

 

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors