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
Super Users of the Quarter - Q2 2020

Super Users of the Quarter - Q2 2020

Who are our Super User Superstars? Who made it to the top of the leaderboards? Get the answers!

June 2020 Community Highlights

June 2020 Community Highlights

Featured community members, changes to the Community, and more! Read up on recent Power BI community news.

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 Kudoed Authors