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
comish4lif
Helper II
Helper II

Measures - Row Level vs the Table Level

I have a measure that calculates properly at the row level.

 

LeagueR1Bi =
DIVIDE(SUM('Table 0'[R1_BI]), SUM('Table 0'[R1]))

 

But I also want to have a version of that calculation at the table level. That is, the sum of all values in the column R1_BI dividied by the sum of all values in the column R1. If I do not select a row to highlight/filter, the calculation displays and calculates correctly.

 

However, if I want to compare the row's calculation to the table's calculation, it will only show the row calculation.

 

How can I compare the row calculation to the table calculation?

 

For example, in one row - the values would be 63/392 = 16.1%,

but for the entire table, the values would be 6957/51801 = 13.4%

1 ACCEPTED SOLUTION
DaFloDo
Resolver I
Resolver I

hi @comish4lif,

 

try 

 

TableMeasureIgnoreFilter = DIVIDE(calculate(SUM('Table 0'[R1_BI]); All('Table 0')); CALCULATE(sum('Table 0'[R1]);ALL('Table 0')) )

 

best regards

 

florian

View solution in original post

4 REPLIES 4
DaFloDo
Resolver I
Resolver I

hi @comish4lif,

 

try 

 

TableMeasureIgnoreFilter = DIVIDE(calculate(SUM('Table 0'[R1_BI]); All('Table 0')); CALCULATE(sum('Table 0'[R1]);ALL('Table 0')) )

 

best regards

 

florian

That is giving me an error - It doesn't like one of the semi-colons.

 

The syntax for ';' is incorrect. (DAX(DIVIDE(calculate(SUM('Table 0'[R1_BI]);All('Table 0'));CALCULATE(sum('Table 0'[R1]);ALL('Table 0')) ))).

Sorry, please exchange semicolons by commata ... I have to use semicolons because of regional operating system reasons i guess.

That's it - thanks, for those in the US:

 

LeagueR1BI = DIVIDE(calculate(SUM('Table 0'[R1_BI]),All('Table 0')),CALCULATE(sum('Table 0'[R1]),ALL('Table 0')) )

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.