cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
amol0512
Frequent Visitor

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
Frequent Visitor

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
Winner of T-Shirt Design

Power BI T-Shirt Design Challenge 2023

Find out who won the T-Shirt Design Challenge and the top 3 finalists.

March 2023 Update3

Power BI March 2023 Update

Find out more about the March 2023 update.