Forum Discussion

Phil_Seamark's avatar
Phil_Seamark
Microsoft Employee
10 years ago
Solved

DAX Query to MDX Cube

I would like to display the most recent 30 days of sales data along with the values for the same 30 days for the previous year.   I have an attribute in my date dimension called [Days from Today] w...
  • Phil_Seamark's avatar
    Phil_Seamark
    10 years ago

    Found my issue. When I was trying to use calculated measures that referenced outside the date range eg. Year on Year comparison, then would not work if I used attributes of my date dimension. I needed to change the calculated measures to use the Key on the Date dimension.  The problem I have is I'm using integer data types through my FACT tables which don't scale in Power BI visuals. I just have to convert to use the 4 byte DATE data type and all will be good.