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

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!

Reply
Anonymous
Not applicable

HELP! Calculating % Difference between two Table Visuals

Hello,

 

I am trying to calculate the % difference between two table visuals.

galaxyseaotter_0-1721913091002.png

The table to the left of the red line is filtered differently than the table to the right of the line. These are two different table visuals and is not connected in any way other than pulling from the same main data set. 

 

I want to find the percent difference between Avg. Base Salary and the Market 50th.

 

I tried various DAX formulas like 

 

% DifferenceTEST =
VAR APPLE = IF('Survey Data'[FRUIT] = "APPLE",(AVERAGE('Survey Data'[PRICE]), BLANK())
VAR MARKET = (MEDIAN('Survey Data'[ADJUSTEDPRICE]))
RETURN
DIVIDE(ORG)-(MARKET),(ORG)
 
I have also explored potentially creating a third table but not sure how to referece the two values (Avg. and Median.)
 
The % difference for the first line should be .84% (500,655-496,431)/500,655.

 

This reprot would strictly be exported to PDF and not as excel - hence why I am fine with not creating one set table. 

 

Thanks the the help/advice!

 

 

 

 

 

 

 

1 REPLY 1
rajendraongole1
Super User
Super User

Hi @Anonymous -create measures to calculate the "Avg. Base Salary" and the "Market 50th" values.

AvgBaseSalary = AVERAGE('Survey Data'[Base Salary])

Market50th = MEDIAN('Survey Data'[Market 50th])

create a measure to calculate the % difference between

PercentDifference =
VAR AvgBase = [AvgBaseSalary]
VAR Market = [Market50th]
RETURN
DIVIDE(AvgBase - Market, AvgBase)

 

you can export to pdf >> Go to the File menu in Power BI Desktop."Export to PDF" option is there. 

 

Hope this helps 

Did I answer your question? Mark my post as a solution! This will help others on the forum!
Appreciate your Kudos!!





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! It's time to submit your entry.

January Power BI Update Carousel

Power BI Monthly Update - January 2026

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

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.