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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Reply
Amardeep100115
Post Prodigy
Post Prodigy

Need help on Nested IF condition

Hi 

 

 

I wish to map word "Increased By" & Decreased By" according to it's occurance in file . please help

 

 

Excel Data 

Amardeep Bhingardeve
8 REPLIES 8
ryan_mayu
Super User
Super User

@Amardeep100115 

do you want to compare the diff% and previous month%diff?

if so, you can just try this

Column 2 = IF('Table'[% Diff]>='Table'[Previous Month % Diff],"Increase","Decrease")




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

Proud to be a Super User!




ryan_mayu
Super User
Super User

@Amardeep100115 

is this what you want?

Column = 
VAR last=maxx(FILTER('Table','Table'[Index]=EARLIER('Table'[Index])-1),'Table'[% Diff])
return if(ISBLANK(last),"increased by",if(last<'Table'[% Diff],"increased by","decreased by"))

pls see the attachment below





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

Proud to be a Super User!




Thank you for your quick response,

 

All down trangle should be show as "Decreased By" and up trangle should show "Increased By" 

Please help on this 
Thanks again

 

Amardeep Bhingardeve

@Amardeep100115 

May I know what's wrong with the solution I provided?





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

Proud to be a Super User!




Please have a look attached snap 

Amardeep100115_0-1624863215037.png

 

Amardeep Bhingardeve

@Amardeep100115

pls check the attachment below

 





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

Proud to be a Super User!




It seems you attached earlier file which has same result as shared snap

 

Amardeep Bhingardeve

@Amardeep100115 

what's the logic for up and down triangles?





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.