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
olijo
Frequent Visitor

Measure from row values

Hello! I have a table like this:

dim1     dim2     value1
b1             A              4
b1             B             20
b2             A             5
b2             B            30
b3             A             2
b3             B              6
b4             A              1
b4             B              40
b5              A             20
b5              B           200

and a measure like this: measure:=sum(value1).

How can I make in Power BI table like this:

Untitled.png

where values in column C = A/B in percents.

How can I make this in Power BI, when I have only one measure for each row and I need to mix two rows (A and B)? Thanks in advance!

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

@olijo Please create below measure to get the desired result

A = CALCULATE(SUM('Table'[value]),'Table'[dim2]="A")
B = CALCULATE(SUM('Table'[value]),'Table'[dim2]="B")
C = DIVIDE([A],[B],0)

View solution in original post

1 REPLY 1
Anonymous
Not applicable

@olijo Please create below measure to get the desired result

A = CALCULATE(SUM('Table'[value]),'Table'[dim2]="A")
B = CALCULATE(SUM('Table'[value]),'Table'[dim2]="B")
C = DIVIDE([A],[B],0)

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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!

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.