Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
7 years ago
Solved

Dax - New Measure to count values within current Month

Hi All,   Need some help please.  I need to present a table based on data for the current month?!   I have a simple dataset, list of dates throughout the year, but i need to create a table counti...
  • Greg_Deckler's avatar
    7 years ago

    Easiest thing to do would be to create a calculated column like:

     

    IsCurrentMonth = 
    VAR __today = TODAY()
    VAR __date = [Date of Joining]
    RETURN
    IF(YEAR(__today) = YEAR(__date) && MONTH(__today) = MONTH(__date),1,0)