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
Anonymous
Not applicable

% increase or decrease in a table visual

Hello all

 

Im trying to use the table visual to demonstrate the difference between periods, and I'm coming a bit unstuck.

For example, my visual looks something like this:

Period        Transactions

1                 1000

2                 1500

3                 2750

4                 1750

 

I am looking for a way to add either a measure or a column (although I think it will be a measure) onto this visual that gives the following:

Period        Transactions      % Difference

1                 1000                  n/a

2                 1500                  50%

3                 2750                  83.3%

4                 1750                  -36.3%

 

As is shown, the additional metric looks at the preceding period, and calculates the % difference between the 2 figures, so between periods 1 and 2, there was a 50% uplift in transactions (500/1000 as a percentage), between periods 2 and 3, there was a 83.3% uplift in transactions (1250/1500 as a percentage), and between periods 3 and 4, there was a negative 36% drop in transactions (1000/2750 as a percentage).

 

Its worth noting here that periods are not a measure of time in this instance, and as such there is no date table that determines the periods.

 

Can anyone help with this?

Thanks in advance!

2 REPLIES 2
amitchandak
Super User
Super User

@Anonymous , a New column like

 

New column =
var _curr = [Transactions]
var _last = sumx(filter(Table, [period] = earlier([period])-1),[Transactions])
return
if(isblank(_last), blank(), divide(_curr-_last,_last))

 

a new measure

 


New measure =
var _curr = sum([Transactions])
var _last = sumx(filter(allselected(Table), [period] = max([period])-1),[Transactions])
return
if(isblank(_last), blank(), divide(_curr-_last,_last))

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

@amitchandak 

 

Once again, you have nailed this.

Thank you so much!

Kudos given!

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 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.

Top Solution Authors