Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

Divide problem

Hi Everyone,

 

I am trying to create one divide column. I created the Load calculated column as I need to do. Secondly, I use filter to create Pallets column. Now I want to divide the Pallets to Load. I am getting wrong answer. 

If anyone can help will be appreciated. I have "PK" which I try to use as filter but it still not resolve. 

Thanks

 

 

 

 

 

  • Anonymous , formula seems correct, Assume both Pallets and load are measures not column and the new formula is also measure

     

    if they are column then it should be

     = Divide(sum(Table[Pallets]),Sum(Table[load]))

5 Replies

Replies have been turned off for this discussion
  • Greg_Deckler's avatar
    Greg_Deckler
    Community Champion

    Anonymous - Need to know if these are columns or measures. Need the calculations for the measures.

     

    Not really enough information to go on, please first check if your issue is a common issue listed here: https://community.powerbi.com/t5/Community-Blog/Before-You-Post-Read-This/ba-p/1116882

    Also, please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490

    The most important parts are:
    1. Sample data as text, use the table tool in the editing bar
    2. Expected output from sample data
    3. Explanation in words of how to get from 1. to 2.

  • Anonymous , formula seems correct, Assume both Pallets and load are measures not column and the new formula is also measure

     

    if they are column then it should be

     = Divide(sum(Table[Pallets]),Sum(Table[load]))

    • Anonymous's avatar
      Anonymous
      Not applicable

      They both are calculated measure.

       

      • amitchandak's avatar
        amitchandak
        Super User

        Anonymous , the final divide should be measure. I am not able to see your calculation. Can you post all that in text format?

         

        Can you share sample data and sample output in a table format? Or a sample pbix after removing sensitive data.