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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

Reply
Alienvolm
Helper IV
Helper IV

How to reference a specific cell in a table of the report builder to build an expression

Hi, 

 

As I didn't get any traction with my previous question, I'm trying to build my percentage calculation inside the report builder directly. 

 

This is my table: 

Alienvolm_0-1620359145879.png

In the "%" column, I would like to create a simple expression that divides the value under the first "Users" column by the value under the second "Users" column. 

How do I reference those two cells in an expression? 

 

If I copy the content of the cells I get this (which makes every value 100%): 

Alienvolm_1-1620359345097.png

 

If I assign a name to the cells in the Text Box properties as below and then I use those names in the expression, I get another error: 

Alienvolm_3-1620359709986.png

 

Alienvolm_2-1620359601813.png

 

And the same happens if I assign a label. 

 

How can I reference these two cells to build a calculation in the report builder? Or, how do I declare those values? 

 

Thank you in advance for your suggestions. 

 

 

 

 

1 ACCEPTED SOLUTION
AbhiSSRS
Solution Sage
Solution Sage

What expression are you building for the textbox names? 

It should be like :

 

=ReportItems!CountofUsers0.Value/ReportItems!CountofUsers1.Value

 

eg in this report : 

In Variance column I have put below expression and that works fine :

=ReportItems!Sales.Value/ReportItems!Quota.Value

AbhiSSRS_0-1620372662021.png

 

View solution in original post

2 REPLIES 2
AbhiSSRS
Solution Sage
Solution Sage

What expression are you building for the textbox names? 

It should be like :

 

=ReportItems!CountofUsers0.Value/ReportItems!CountofUsers1.Value

 

eg in this report : 

In Variance column I have put below expression and that works fine :

=ReportItems!Sales.Value/ReportItems!Quota.Value

AbhiSSRS_0-1620372662021.png

 

Fixed!! 

Thank you SO much! 

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

Find out what's new and trending in the Fabric Community.

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

Check out the November 2024 Power BI update to learn about new features.