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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. 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
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! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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