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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Comparison of two columns in percentage

Hi everyone,

 

I am getting stuck in solving my small issue, which is visualizing the difference between two different data in percentage. In this specific case in the screnshoot I am comparing only the years 2021 and 2022. However, my database is since 2008.

 

My goal here is to get the values in percentage comparing two different years in this column "Gesamt". How could I do that? Rememebring that my database contains data from year 2008 to 2024

 

rosana_0-1661173095376.png

 

And that's how I want to visualize the data.

 

rosana_1-1661173179256.png

 

Thank you in advance. 😃

 

 

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

Hi @Anonymous ,

 

Please create a new column:

+/- % = [Y2021]-[Y2020]

 

Then create a new measure:

color = IF(MAX('Sheet4'[+/- %])<0,"#FF0000","#7CFC00")

 

Select “Conditional formatting” - “Font color”.

vyadongfmsft_0-1661420835320.png

 

In font color page, select “Field value” and “color” measure.

vyadongfmsft_1-1661420835323.png

Then you can get result you want.

vyadongfmsft_2-1661420835325.png

Best regards,

Yadong Fang

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

3 REPLIES 3
v-yadongf-msft
Community Support
Community Support

Hi @Anonymous ,

 

Please create a new column:

+/- % = [Y2021]-[Y2020]

 

Then create a new measure:

color = IF(MAX('Sheet4'[+/- %])<0,"#FF0000","#7CFC00")

 

Select “Conditional formatting” - “Font color”.

vyadongfmsft_0-1661420835320.png

 

In font color page, select “Field value” and “color” measure.

vyadongfmsft_1-1661420835323.png

Then you can get result you want.

vyadongfmsft_2-1661420835325.png

Best regards,

Yadong Fang

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

gauthamboppana
Solution Specialist
Solution Specialist

@Anonymous  - Please check the below links for solutions. You will have to tailor the dataset and measures accordingly. Hope this helps !

https://community.powerbi.com/t5/Desktop/Percentage-change-across-matrix/m-p/210181

https://community.powerbi.com/t5/Desktop/How-to-calculate-percentage-change-between-two-dates/m-p/494008

Did I answer your question? Mark my post as a solution! If not, please feel free to ask me.

Also, I would ❤ Kudos if my solution helped.  It is a token of appreciation!

Thank you very much !

 

collinq
Super User
Super User

Hi @Anonymous ,

 

You might want to ask the question in the Dax/Developer area but the process would probably be to create a year over year percentage measure.  (There may even be a quick measure for that ) and then the measure would compare any two sequential years.




Did I answer your question? Mark my post as a solution!

Proud to be a Datanaut!
Private message me for consulting or training needs.




Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors