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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

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

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.