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
NISHA_S
Resolver I
Resolver I

percentage differnce in power bi

Hi all,

      I tried to find percenatge differnce with the two values...its calcualtion perfectly done in power bi .Here am adding data exported from power bi for reference...

1st image is data for calcualtion...ie...here am taking two month  average rate for comparison...So...March2020 with April2020 by formula as

Rate change value=(New value-old value)/old value

 is getting...correctly...But now i am facing here an issue.

2nd image Monthly june 2021 is coming which is not needed and not in the listed in 1st image ...So..Is there any solution for removing june 2021 from the list?plse help..

 

ss.PNG

ss1.PNG

steps i used are

Average rate=average(values)

Previous Month = CALCULATE ( [Average rate], DATEADD ( 'Calendar'[Date], -1, MONTH ) )
Rate Change =
IF (
NOT ISBLANK ( [Previous Month]),
DIVIDE (
[Average rate] - [Previous Month],
[Previous Month]
)
)
1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@NISHA_S , Try like

 

Rate Change =
if(isblank([Average rate]), blank(),
IF (
NOT ISBLANK ( [Previous Month]),
DIVIDE (
[Average rate] - [Previous Month],
[Previous Month]
)
))

View solution in original post

1 REPLY 1
amitchandak
Super User
Super User

@NISHA_S , Try like

 

Rate Change =
if(isblank([Average rate]), blank(),
IF (
NOT ISBLANK ( [Previous Month]),
DIVIDE (
[Average rate] - [Previous Month],
[Previous Month]
)
))

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.