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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
Mahadevaraobc
Helper II
Helper II

Highlight increase

Hi all,
Not sure if this is possible, i would like to highlight percentage increase by month.
Eg.
I have a table where column has month and products are in row
I would like highlight in red the value if value is greater than 10% when compared to this month vs last month.
1 ACCEPTED SOLUTION

Well, that depends on your data. 

 

You need a calendar table https://exceleratorbi.com.au/power-pivot-calendar-tables/

and time intelligence calcs. https://exceleratorbi.com.au/dax-time-intelligence-beginners/

 

Typically

total = sum(table[column])

total last month = calculate([total],dateadd(calendar[date],-1,year)

chg = [total] - [total last month]

% chg = divide([chg],[total last month])




* Matt is an 8 times Microsoft MVP (Power BI) and author of the Power BI Book Supercharge Power BI.
I will not give you bad advice, even if you unknowingly ask for it.

View solution in original post

6 REPLIES 6
MattAllington
Community Champion
Community Champion

Yes it is possible, but you haven’t provided any detail. So, you need to 

1. Write a measure for this month

2. Write a measure for last month

3. Write measures for chg and %chg vs last month

4. Apply conditional formatting on your result based on the % chg measure. 



* Matt is an 8 times Microsoft MVP (Power BI) and author of the Power BI Book Supercharge Power BI.
I will not give you bad advice, even if you unknowingly ask for it.

Thanks for replying Matt, so what measure do I need to write for this month n last month?

Well, that depends on your data. 

 

You need a calendar table https://exceleratorbi.com.au/power-pivot-calendar-tables/

and time intelligence calcs. https://exceleratorbi.com.au/dax-time-intelligence-beginners/

 

Typically

total = sum(table[column])

total last month = calculate([total],dateadd(calendar[date],-1,year)

chg = [total] - [total last month]

% chg = divide([chg],[total last month])




* Matt is an 8 times Microsoft MVP (Power BI) and author of the Power BI Book Supercharge Power BI.
I will not give you bad advice, even if you unknowingly ask for it.

Can I use the above formula for multiple months

Yes, it is a generic formula that works for any month.  If you post a sample workbook with some loaded realistic data including a calendar table, I will show you.



* Matt is an 8 times Microsoft MVP (Power BI) and author of the Power BI Book Supercharge Power BI.
I will not give you bad advice, even if you unknowingly ask for it.

This doesnt work. The whole table colors will be changed based on last month data

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.