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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
arun2001mjl
Helper II
Helper II

Compare 2 values from 2 different tables and show the ICON(Up Arrow, Down Arrow) in 3rd Column

Hello All,

 

Need your help on this in PowerBI Dax.

 

I have 2 tables called Last month(Dec 21) & Current Month(21) which has ticket counts and account names.

I need to compare both the values in Last month & Current month and show the ICON in 3rd column as .. 

Last month ticket count > Current Month ticket count : Down Arrow

Last month ticket count < Current Month ticket count: Up Arrow

Last Month ticket count = Current Month ticket count: Equal Arrow

 

Is this possible in powerbi?

 

Table NamesTable 1Table 2 
AccountLast month Ticket countCurrent Month ticket countComparison
A94562345 
B234523433 
C238426565 
D43435656 
E45459456 
F2324343 
G43434343 
H677232 

 

Regards

Arun

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @arun2001mjl ,

 

Any updates?  I think @ValtteriN 's method is efficient. 

Eyelyn9_0-1644372359377.png

 

Could you tell me if your problem has been solved? If it is, kindly Accept it as the solution. More people will benefit from it. Or if you are still confused about it, please provide me with more details about your table and your problem or share me with your pbix file after removing sensitive data.

 

 

Best Regards,
Eyelyn Qin

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @arun2001mjl ,

 

Any updates?  I think @ValtteriN 's method is efficient. 

Eyelyn9_0-1644372359377.png

 

Could you tell me if your problem has been solved? If it is, kindly Accept it as the solution. More people will benefit from it. Or if you are still confused about it, please provide me with more details about your table and your problem or share me with your pbix file after removing sensitive data.

 

 

Best Regards,
Eyelyn Qin

ValtteriN
Super User
Super User

Hi,

Try somethin like this:

Column 2 =
var _item = ItemExample[Item]
var _value = CALCULATE(SUM('Matrix example'[Value]),ALL('Matrix example'),'Matrix example'[Item]=_item)
return
SWITCH(TRUE(),_value>ItemExample[Column],UNICHAR(11165),
_value<ItemExample[Column],UNICHAR(11167),
_value=ItemExample[Column],UNICHAR(11166))
 
I am using Item instead of Account but the logic is the same.

End result:
ValtteriN_0-1643722239424.png

I hope this post helps to solve your issue and if it does consider accepting it as a solution and giving the post a thumbs up!

My LinkedIn: https://www.linkedin.com/in/n%C3%A4ttiahov-00001/







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

Proud to be a Super User!




Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.