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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Peter
Frequent Visitor

Percentage between two fields in a created table

 

Based on 2 merged reports I could create following table, as a last step I need as well extra columns which are calculating the % of "NewColumn AGC/AGR" versus the "Count of Serial Number".

How can this be done?

thx

EXAMPLE.JPG

1 ACCEPTED SOLUTION

Hi @Peter,

 

As your response from message, I would like to update the final formula as your expectation for reference purpose, so another people could refer this when they have same concern

 

% AGC = DIVIDE( sum('BI report+ OPT'[NewColumn.AGC]), DISTINCTCOUNT('BI report+ OPT'[Serial Number])  )
% AGR = DIVIDE(SUM('BI report+ OPT'[NewColumn.AGR]),DISTINCTCOUNT('BI report+ OPT'[Serial Number]))

 

View solution in original post

6 REPLIES 6
tringuyenminh92
Memorable Member
Memorable Member

Hi @Peter,

 

You could try to create calculated measure or calculated column:

  • Calculated measure: % = divide(sum(AGC),sum(AGR))
  • Calculated column: % = divide(AGC,AGR)

some more info

I need to divide NewColumn.AGC (and AGR) by Count of Serial Number.

Both are dynamic. It's a report table, not a DATA file...

Can I make a data table of it? then I could create the extra fields I need?

thx

 

 

Hi @Peter

 

I dont get you, could you please show your sample data of transaction and expectation? So I will know what we have and what we need to do

Sure

NewColumn.AGC and NewColumn.AGR are representing the presence of a certain option on a serialnumber sold (Count of Serial Number).

I now have then in volumes, but would also need the percentage of serialnumbers that are having the option.Capture.JPG

Hi @Peter,

 

As your response from message, I would like to update the final formula as your expectation for reference purpose, so another people could refer this when they have same concern

 

% AGC = DIVIDE( sum('BI report+ OPT'[NewColumn.AGC]), DISTINCTCOUNT('BI report+ OPT'[Serial Number])  )
% AGR = DIVIDE(SUM('BI report+ OPT'[NewColumn.AGR]),DISTINCTCOUNT('BI report+ OPT'[Serial Number]))

 

Hi @Peter,

 

So far i dont understand what your expectation, but let me guess, you want calculate % of AGC/count of serialnumber and % AGR /count of serial number. Am i correct? if that, you could try with calculated measure:

 

% AGC = divide(sum(AGC),count(serialnumbercolumn))

% AGR = divide(sum(AGR),count(serialnumbercolumn))

 

It's better if I could analyze your data or your data sample to ensure above formua is correct.

 

 

 

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 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.

Top Solution Authors