cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper III
Helper III

Compare two years sales and color code the difference

Hi All,

 

I have a requirement where i have to compare 8 categories current years and previous years measures and notify the difference with arrow symbol whether there is a decrease/increase w.r.t previous years measure. Also, if there is increase and the increase is more than 5% then we have to represent the arrow otherwise no need to show the arrow.

 

Is there any better way of representing this scenario.

 

Currently I am doing it in Matrix by just representing the values and conditional formatting. Looking for  a better approach

 

Thanks

KVB

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Microsoft
Microsoft

Re: Compare two years sales and color code the difference

Hi @vkomarag

 

In terms of adding arrows to your matrix, the UNICHAR function allows you to cheaply add icons.  Please read this blog for some ideas on that front.

 

https://blog.crossjoin.co.uk/2017/04/11/the-dax-unichar-function-and-how-to-use-it-in-measures-for-d...

 

As per your measures, do you also need help with them?  It should be pretty straight forward to create a mesure for this/last year and then a difference delta/percent measure if required.  Perhaps if you post some sample data we can give you some ideas.

 

 


To learn more about DAX visit : aka.ms/practicalDAX

Proud to be a Datanaut!

View solution in original post

2 REPLIES 2
Highlighted
Microsoft
Microsoft

Re: Compare two years sales and color code the difference

Hi @vkomarag

 

In terms of adding arrows to your matrix, the UNICHAR function allows you to cheaply add icons.  Please read this blog for some ideas on that front.

 

https://blog.crossjoin.co.uk/2017/04/11/the-dax-unichar-function-and-how-to-use-it-in-measures-for-d...

 

As per your measures, do you also need help with them?  It should be pretty straight forward to create a mesure for this/last year and then a difference delta/percent measure if required.  Perhaps if you post some sample data we can give you some ideas.

 

 


To learn more about DAX visit : aka.ms/practicalDAX

Proud to be a Datanaut!

View solution in original post

Highlighted
Helper III
Helper III

Re: Compare two years sales and color code the difference

The link you have provided is really helpful and great.

 

I have achieved the requirement using image url's. Thank you so much .

Helpful resources

Announcements
Community Blog

Community Blog

Visit our Community Blog for articles, guides, and information created by fellow community members.

Using the Community

Using the Community

Need help with the Power BI Community? Our 'Using the Community' support articles are a great place to start.

Community Summit North America

Community Summit North America

Innovate, Collaborate, Grow. The top training and networking event across the globe for Microsoft Business Applications

Power Platform 2020 release wave 2 plan

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors