cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

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
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

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

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors