Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
2 years ago
Solved

Row Totals

I am trying to create get the totals from my WeightedScore column. The weighted score are correct nothing populating at the bottom. The "weightedscore" was a calculated field created in Excel before loading and is in the decimal number format and SUM summarization. Could someone please help me with building a seperate measure that will give me the total of my weighted score. 
First picture shows that data and the columns. 

This picture shows the fields I have and I am trying to get a total for the weighted score field. 

 

  • Anonymous's avatar
    Anonymous
    2 years ago

    Hi Anonymous 

     

    You can use the following dax to create a calculate column:

    Column = 'Table'[Score] * 'Table'[Points] * 0.01


    If you want create a seperate measure that will give you the total of weighted score, please try the following measure and then put it into a card visual.

    Measure = SUM('Table'[Column])



     

     

     

     

     

     

    Best Regards,

    Jayleny

     

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

3 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi Anonymous 

     

    Can you provide detailed sample pbix file and the results you expect.So that I can help you better. Please remove any sensitive data in advance.

     

     

     

    Best Regards,

    Jayleny

    • Anonymous's avatar
      Anonymous
      Not applicable
      Course NameScorePointsAttemptsNameWeighted Score (score * point weight) 
      Lesson 180101Jim Bob8
      Lesson 290102Tex Mex9
      Lesson 3100101Jacki Chan10
      Lesson 487102John Doe8.7
      Lesson 570101Onna Fairway7
      Lesson 667101Geek Guy6.7
      Lesson 798101Skeeg9.8
      Lesson 840101Danny Downs4
      Lesson 978101Tex Mex7.8
      Lesson 1090101Bad Worker9
      Lesson 1190101Good Worker9
      Lesson 1280102Onna Fairway8
      Lesson 1390103Jim Bob9
      Lesson 1480101Jim Bob8
      Lesson 1570105John Doe7
      Lesson 1689102Jacki Chan8.9
      Lesson 1780105Tex Mex8
      Lesson 1878104Danny Downs7.8
      Lesson 1987101Good Worker8.7
      Lesson 2098101Good Worker9.8
      Lesson 2189101Chris Mendez8.9
      Lesson 2277102Sherry Lien7.7
      Lesson 2388102Onna Fairway8.8
      Lesson 2499102Jim Bob9.9
      Lesson 2560102Skeeg6
      Lesson 2658102Skeeg5.8
      Lesson 2701001Tex Mex0
      Lesson 280501Onna Fairway0
      Lesson 2901001Geek Guy0
      Lesson 3001001Geek Guy0
      Lesson 3101001Tex Mes0

      This is a short version of what my data looks like. The weighted score is correct in the first image and as you can see even if the attempts are more than one it only takes the weighted score of the highest score. I am trying to get a total at the bottom that will show the weighted score. Anonymous 

      • Anonymous's avatar
        Anonymous
        Not applicable

        Hi Anonymous 

         

        You can use the following dax to create a calculate column:

        Column = 'Table'[Score] * 'Table'[Points] * 0.01


        If you want create a seperate measure that will give you the total of weighted score, please try the following measure and then put it into a card visual.

        Measure = SUM('Table'[Column])



         

         

         

         

         

         

        Best Regards,

        Jayleny

         

        If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.