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

The ultimate Microsoft Fabric, Power BI, Azure AI & SQL learning event! Join us in Las Vegas from March 26-28, 2024. Use code MSCUST for a $100 discount. Register Now

Reply
michael_knight
Post Prodigy
Post Prodigy

Percentage comparing 2018 to2019

Hi Al,

 

I'm trying to get the percentage rise from 2018 to 2019 for multiple months

 

Capture.PNG

Every example I'm seeing online is using this with a currency or numeric value. 

 

I'm only using the amount of records within a colum as my value

1 ACCEPTED SOLUTION
v-frfei-msft
Community Support
Community Support

Hi @michael_knight ,

 

One sample for your rerefence. If it doesn't meet your requirement, kindly share your sample data and excepted result to me if you don't have any Confidential Information. Please upload your files to One Drive and share the link here.

Measure = 
VAR y18 =
    CALCULATE ( SUM ( Table1[value] ), FILTER ( Table1, Table1[Year] = 2018 ) )
VAR y19 =
    CALCULATE ( SUM ( Table1[value] ), FILTER ( Table1, Table1[Year] = 2019 ) )
RETURN
    DIVIDE ( y19 - y18, y18 )

Capture.PNG

 

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.

View solution in original post

2 REPLIES 2
Ashish_Mathur
Super User
Super User

Hi,

Share the link from where i can download your PBI file.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
v-frfei-msft
Community Support
Community Support

Hi @michael_knight ,

 

One sample for your rerefence. If it doesn't meet your requirement, kindly share your sample data and excepted result to me if you don't have any Confidential Information. Please upload your files to One Drive and share the link here.

Measure = 
VAR y18 =
    CALCULATE ( SUM ( Table1[value] ), FILTER ( Table1, Table1[Year] = 2018 ) )
VAR y19 =
    CALCULATE ( SUM ( Table1[value] ), FILTER ( Table1, Table1[Year] = 2019 ) )
RETURN
    DIVIDE ( y19 - y18, y18 )

Capture.PNG

 

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.

Helpful resources

Announcements
Fabric Community Conference

Microsoft Fabric Community Conference

Join us at our first-ever Microsoft Fabric Community Conference, March 26-28, 2024 in Las Vegas with 100+ sessions by community experts and Microsoft engineering.

February 2024 Update Carousel

Power BI Monthly Update - February 2024

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

Fabric Career Hub

Microsoft Fabric Career Hub

Explore career paths and learn resources in Fabric.

Fabric Partner Community

Microsoft Fabric Partner Community

Engage with the Fabric engineering team, hear of product updates, business opportunities, and resources in the Fabric Partner Community.