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
I-Jay-I
Frequent Visitor

Percentage Change Query

Hi All,

 

Im trying to calculate a percentage based off two other columns in my Power BI report. I have created a column called the Recovery Percentage to divide the Standard Rated Net by the Net. The Standard Rated Net column has been calculated using the formula: 

 

Standard Rated Net = IF('Sheet1'[Rate]="SR",'Sheet1'[Net],0)

 

The Reporting Month has been calculated using the formula:

 

Reporting Month = EOMONTH(Sheet1[Date],0)

 

However when I change the Reporting Month filter the percentage doesnt seem to change. Please the attached photos.

 

This is correct when all months are accounted for.

TestFile.PNG

Once I have selected multiple months the percentage is clearly wrong.

TestFile2.PNG

The data inputted is as follows

 

TestFile3.PNG

 

 

 

Any help would be appreciated and thank you in advance!

 

Spoiler
Spoiler
 
1 ACCEPTED SOLUTION
v-xuding-msft
Community Support
Community Support

Hi @I-Jay-I ,

 

I suggest you to create a measure of Recovery Percentage, then it will work. The following is my sample you can have a try.

 

The calculated column of Standard Rated Net and Reporting Month are both used your formula.

Standard Rated Net = IF('Sheet1'[Rate]="SR",'Sheet1'[Net],0)
Reporting Month = EOMONTH(Sheet1[Date],0)

1.png

 

Create a measure.

Recovery Percentage = DIVIDE(SUM(Sheet1[Standard Rated Net]),SUM(Sheet1[Net]))

2.jpg3.png4.png

Best Regards,

Xue Ding

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Best Regards,
Xue Ding
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-xuding-msft
Community Support
Community Support

Hi @I-Jay-I ,

 

I suggest you to create a measure of Recovery Percentage, then it will work. The following is my sample you can have a try.

 

The calculated column of Standard Rated Net and Reporting Month are both used your formula.

Standard Rated Net = IF('Sheet1'[Rate]="SR",'Sheet1'[Net],0)
Reporting Month = EOMONTH(Sheet1[Date],0)

1.png

 

Create a measure.

Recovery Percentage = DIVIDE(SUM(Sheet1[Standard Rated Net]),SUM(Sheet1[Net]))

2.jpg3.png4.png

Best Regards,

Xue Ding

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Best Regards,
Xue Ding
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi Xue Ding,

 

Thanks for this! It appears I was using new column instead of new measure.

 

Thanks!

 

Jay

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.