Forum Discussion

sa1's avatar
sa1
Frequent Visitor
9 years ago
Solved

DATEADD not working

Hi, I have been trying to use the DATEADD function to compute a certain attribute "cost" for the  previous Month. I'm using a horizontal bar graph. The Date Attribute for the table containing cost ...
  • v-sihou-msft's avatar
    9 years ago

    sa1

     

    As you said, you fact table has many to one relationship to your date dimension table. Since you have multiple entries for same date in fact table, you need to use ALLEXCEPT() function to group the calculation.

     

     

    And make sure you include the date field from date dimension into visual.

     

     

    Regards,