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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

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
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

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.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.