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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! 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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.