Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
TimsLanding
Frequent Visitor

Calendar Table with Mid Month Reporting Periods

My company has mid month reports and I'm having trouble getting my calendar days per monthly reporting period. For example, If I pull the January report; 

MONTH             PERIOD

JANUARY           16 NOV - 15 DEC

FEBRUARY         16 DEC - 15 JAN

 

I want to use a Splicer with MONTH and Pick my Reporting Period. 

1 ACCEPTED SOLUTION
FreemanZ
Super User
Super User

hi @TimsLanding 

try to add a column in your calendar table like:

Column =
IF(
   DAY([Date])>=16,
   FORMAT(EOMONTH([Date], 2) ,"mmmm"),
   FORMAT(EOMONTH([Date], 1) ,"mmmm")
)

View solution in original post

3 REPLIES 3
TimsLanding
Frequent Visitor

TimsLanding_0-1675528341699.png

Yes sir! That definitely worked! I have no idea how that formula works, just by having it Greater than or equal to 16, it knows that's the day count of the month, I love it. 

FreemanZ
Super User
Super User

hi @TimsLanding 

try to add a column in your calendar table like:

Column =
IF(
   DAY([Date])>=16,
   FORMAT(EOMONTH([Date], 2) ,"mmmm"),
   FORMAT(EOMONTH([Date], 1) ,"mmmm")
)

If I wanted to count the days of the reporting period, do you know the DAX formula for that? Each time I try CALCULATE(COUNTROWS(DateTable),'DateTable[ReportPeriod]) it states that "July" must be a true or false statement. 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.