how to get the total days per month per year

  • how to get the total days per month per year

    Posted by DSC Communities on October 29, 2022 at 3:38 am
    • Ronie Soriano

      Member

      October 29, 2022 at 3:38 AM

      I have a fields with the following:
      transaction month: ex. 1,2,3,4,5,6,7…
      transaction year: 2019, 2020, 2021….
      how to get the total days for example:
      month: 1
      year: 2019
      total days: ???

      ——————————
      Ronie Soriano
      ——————————

    • Mark Wiley

      Member

      October 31, 2022 at 7:19 AM

      Hi Ronie,

      Do you have a date table? If so (MyDate[Date]):

      Days in Month =
      CALCULATE(
      Ā  Ā  COUNTROWS( MyDates ) ,
      Ā  Ā  Ā  Ā  ALL( MyDates[Date] ) ,
      Ā  Ā  Ā  Ā  Ā  Ā  VALUES( MyDates[Month Year] ) )

      ([Month Year] is a column in my date table that has the year and the month in it.
      Hope that helps,

      ——————————
      Mark Wiley
      Senior Solutions Architect
      GraVoc
      OH
      ——————————
      ——————————————-

    DSC Communities replied 3 years, 5 months ago 1 Member · 0 Replies
  • 0 Replies

Sorry, there were no replies found.

The discussion ‘how to get the total days per month per year’ is closed to new replies.

Start of Discussion
0 of 0 replies June 2018
Now

Welcome to our new site!

Here you will find a wealth of information created for peopleĀ  that are on a mission to redefine business models with cloud techinologies, AI, automation, low code / no code applications, data, security & more to compete in the Acceleration Economy!