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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
am_i_really
Frequent Visitor

Multiple switch commands but multiply value for weight

Hi all, 

So I'm trying to replicate the below table with dax: 

am_i_really_0-1752241610650.png

I am basically counting the total rows but say if I have 3 rows where the score was listed as 80, I need the total number of rows to be multiplied by 4 to get a weighted number.

 

How should this be handled? Any help is appreciated!

2 REPLIES 2
v-agajavelly
Community Support
Community Support

Hi @am_i_really ,

Thanks for raising this! The concept of applying weights based on scores (e.g., multiply count of rows by a weight factor) is possible in DAX, but as @FBergamaschi  rightly pointed out, we need a bit more context to provide you with a solid solution.

To move forward and help you better, could you please share the following.

A small sample of your data in a table format just a few rows that demonstrate the issue.
The expected output for example, what weighted total you'd like to see based on your sample.
Any specific columns used in your visual (e.g., Score, Weight, Count).

This will help us suggest the exact DAX measure or calculated column you need. Also, huge thanks to our amazing super users who keep guiding the community with best practices your reminders to structure questions well are always spot on.

Looking forward to your sample data to help you further.

Regards,
Akhil.

FBergamaschi
Resolver IV
Resolver IV

Without a more clear explanations and the following things, it is simply impossible to answer your question. 

 

Please include, in a usable format, not an image, a small set of rows for each of the tables involved in your request and show the data model in a picture, so that we can import the tables in Power BI and reproduce the data model. The subset of rows you provide, even is just a subset of the original tables, must cover your issue or question completely. Do not include sensitive information and do not include anything that is unrelated to the issue or question. Please show the expected outcome based on the sample data you provided and make sure, in case you show a Power BI visual, to clarify the columns used in the grouping sections of the visual.

 

Need help uploading data? click here

 

Want faster answers? click here

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

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