Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
3 years ago
Solved

Days calculation from slicer

Hi, I want to calculate days from the selected month, it shold be 61 days. How I get this result. I am not using date or calander table, slicer dates come from fact table. I tried following: days...
  • Greg_Deckler's avatar
    3 years ago

    Anonymous Try:

    days =
    var MINval = MIN('Fact'[Date])
    var Maxval = Max('Fact'[Date])
    var result = ( MaxVal - MINval ) * 1.
    return
    result