Forum Discussion

JeffH's avatar
JeffH
Helper I
6 years ago
Solved

Help

Hello, 

 

I have data given to me in the following format. Basically it is truckloads with mulistops on them. The data shows the load ID but has the total load cost on each stop row. I need to show a table with just the one load ID, Total Load Cost, and the stop count. 

 

My Data Structure
Load IDTotal Load CostDestination
12345$1,600.00Hagerstown
12345$1,600.00Frederick
12345$1,600.00Georgetown
   
Table needs to show the Following
Load IDTotal Load CostStop Count 
12345$1,600.003

5 Replies

  • Hi,

    Create a Table visual and drag Load ID to it.  Write these measures:

    Load = MIN(Data[Total Load])

    Count = COUNTROWS(Data)

    Hope this helps.

    • JeffH's avatar
      JeffH
      Helper I

      Thank You, that did the trick. However I should have mentioned that I need to be able to total my load costs. Using the MIN function just shows the MIN load cost rather than the totals. Is there a way to total this? 

       

       

      • Ashish_Mathur's avatar
        Ashish_Mathur
        Super User

        Hi,

        Does this work?

        =SUMX(VALUES(Data[CHRNumber]),[Load Cost])

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi JeffH 

     

    I would not go for creating a formula for this, insteasd I will do it in the Table chart itself.

    here is the sample data I have.

    These simple steps you will ge the outputas you need and as in the above screenshot.

     

    Did I resolve your issue? Mark my post as a solution!

     

    Appreciate your Kudos, Press the thumbs up button!!

     

    Regards,
    Pranit