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
jonnyko
Regular Visitor

Quick, easy and urgent: DAX division of variable numerator by fixed denominator

Hi everyone!

 

Table 1:

SiteThemeScore
LondonA2
LondonA3
LondonA2
LondonB4
ParisA3
ParisA4
ParisA1
ParisB1

 

 

Table 2: Dim_ThemeMax

ThemeMax
A15
B6

 

How do I create something in DAX to plot each site's score per theme as a % of theme max score, rather than just plot the raw scores per theme?

 

Many thanks!!

1 ACCEPTED SOLUTION
Jihwan_Kim
Super User
Super User

Hi, @jonnyko 

I am not sure how your desired outcome looks like, but please check the link down below.

 

Picture1.png

 

score percentage =
SUMX('Table', 'Table'[Score]/RELATED(ThemeMax[Max]))
 
 
 

Hi, My name is Jihwan Kim.


If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.


Linkedin: linkedin.com/in/jihwankim1975/

Twitter: twitter.com/Jihwan_JHKIM


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

View solution in original post

4 REPLIES 4
Jihwan_Kim
Super User
Super User

Hi, @jonnyko 

I am not sure how your desired outcome looks like, but please check the link down below.

 

Picture1.png

 

score percentage =
SUMX('Table', 'Table'[Score]/RELATED(ThemeMax[Max]))
 
 
 

Hi, My name is Jihwan Kim.


If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.


Linkedin: linkedin.com/in/jihwankim1975/

Twitter: twitter.com/Jihwan_JHKIM


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

thanks for the quick response Jihwan, it works on your file and data structure is identical to mine, but when I put it into my Power BI I think the denominator isn't quite pulling through the value per theme. It seems maybe that it's just a fixed value of the count of number of themes there are - there is a 1:many relationship between my Dim_theme table and table with the individual scores though based on Theme....

any thoughts?

Hi, @jonnyko 

Thank you for your feedback.

Please share your sample pbix file's link here, then I can try to look into it to come up with a more accurate measure.

Thanks.

 

 


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

just realised I went wrong by adding a sum( to the table score within my sum( already - your solution has worked. Thank you Jihwan!

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!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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
Top Kudoed Authors