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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
gcrespo
Helper I
Helper I

Percentage for different columns

Hi everyone,

I have the following table ( I have removed the column names for privacy. Let's call them Column 2, 3, and so on):

gcrespo_0-1693231977675.png

I'd like to get a percentage in every row (Columns 2, 3, 4, 5 and 6) using as divider the value in MaxTechniques:

 

Percentage = Value in cell / Value in MaxTechniques

 

The `problem is I don't know how to define a Measure that will affect every column. Is that possible or should I define different Measures for different columns?

 

Regards,

Gabriel Crespo

 

 

 

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@gcrespo , In this case, you have to create that many measures.

 

example = divide(sum(Table[COlumn 2]), Sum(Table[Max Technique]) )

 

 

If you want one single measure, you need to unpivot the columns
Columns 2, 3, 4, 5 and 6

 

Unpivot Data(Power Query): https://youtu.be/2HjkBtxSM0g

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@gcrespo , In this case, you have to create that many measures.

 

example = divide(sum(Table[COlumn 2]), Sum(Table[Max Technique]) )

 

 

If you want one single measure, you need to unpivot the columns
Columns 2, 3, 4, 5 and 6

 

Unpivot Data(Power Query): https://youtu.be/2HjkBtxSM0g

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Hi amitchandak,

I was afraid that was the answer... I could unpivot those columns, however, I wouldn't be able to have the aggregation they are showing right now, so I think it's not the best option for me.

 

Thank you and regards,

Gabriel Crespo

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

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
Top Kudoed Authors