Forum Discussion

donghoonkim1226's avatar
donghoonkim1226
Frequent Visitor
8 years ago
Solved

Need help with custom DAX or Quick Measure

I am building a report for all the quotes that are going out at my company.  I have built 99% of the report but I am having some trouble creating a custom summary of the quote value.   For example...
  • vega's avatar
    vega
    8 years ago

    This one is a tricky one. I don't have a clean solution that can be done with one DAX expression, unfortunately.  A solution to this problem would be to create a calculated table using the following formula:

     

    Table = DISTINCT(Table2[Quote ID])

    This would create a dimension table. You can then create a relationship between your dimension table and the fact table via the Quote ID columns. From there, you can add a calculated column that retrieves the Quote ID value. You can do this with:

     

    Quote Value = CALCULATE(MAX(Table2[Value]))

    That should give you the result you need:

     

     

    I can't figure out how to do it without creating a dimension table. If anyone else can figure out how to incorporate all of this without a dimension table, please chime in.