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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
amol0512
Helper I
Helper I

Remove conditional formatting for top row

Hi,

I would like to remove conditional formatting for the top row. I am checking whether the current month is higher or lower than the previous month. I managed to remove it for Total but was not able to remove it for the first row.

Appreciate it if somebody helps me here.  

BTW this is dummy data. 

 

amol0512_0-1668514566050.png

 

4 REPLIES 4
amol0512
Helper I
Helper I

Hi, Already have it.

 

% Change =

  Var PM = CALCULATE('Monthly Summary'[Total Revenue],DATEADD('Calendar'[Date],-1,MONTH))

  Var TR = 'Monthly Summary'[Total Revenue] Var Diff = TR - PM

  Var isfilter = ISFILTERED('Calendar'[MonthYear])

  Var isblankPM = ISBLANK(PM)

Return

  if(isblankPM <> Blank(),Blank(), if(TR=Blank(),Blank(),if(isfilter, DIVIDE(Diff,TR,""))))

Hi Power BI Community, 

 

Please let me know if anybody knows the solution to this problem. Thanks in advance. 

 

Regards

Amol

 

amitchandak
Super User
Super User

@amol0512 , Make sure in your formula, when previous month is blank change % id blank

 

example

if(isblank[Last month]), Blank(), divide([This month] -[Last month], [Last Month]) )

Hi @amitchandak 
I have below measure

% Change =

  Var PM = CALCULATE('Monthly Summary'[Total Revenue],DATEADD('Calendar'[Date],-1,MONTH))

  Var TR = 'Monthly Summary'[Total Revenue] Var Diff = TR - PM

  Var isfilter = ISFILTERED('Calendar'[MonthYear])

  Var isblankPM = ISBLANK(PM)

Return

  if(isblankPM <> Blank(),Blank(), if(TR=Blank(),Blank(),if(isfilter, DIVIDE(Diff,TR,""))))

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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