Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

HASONEFILTER for drillthrough

Hi everyone,   I am looking how to address the field, which is created "automatically", when you drill down in a bar chart.  For example: I have a date hierarchy (Year-Month) and I drill down to a...
  • Anonymous's avatar
    Anonymous
    6 years ago

    Hi everyone,

     

    I have found a solution to my problem.

    If you always want to have the latest month of a year, you could use this formula:
    msr_YourName = CALCULATE(SUM(tableName; LASTDATE(dateColumn))

     

    Then, if the date hierarchy (use a well designed date table) is created with only year and months, the legend is selected and the msr_YourName is used as the values, it gave me exactly what I was looking for. 

    To everyone involved, thank you very much for your help!

    Best

    J