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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.