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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register 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
November Carousel

Fabric Community Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

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! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

Check out the November 2024 Power BI update to learn about new features.