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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Gauß452
Frequent Visitor

Value on last day of fiscal month

Hey guys, 

 

i have a question about Time-Intelligence functions.

I created a 544 fiscal calenar in powerQuery and now I am looking for a way to compare values on the last day of each month. 

My fiscal calendar starts on sunday --> May is 06.05.2018 - 02.06.2018

 

Now I want to compare the values of 02.06.2018 and 05.04.2018.

 

Does anybody know, how to build that formula?

 

 

Thank you

Gauß452

 

1 ACCEPTED SOLUTION
Floriankx
Solution Sage
Solution Sage

Hello,

 

Do you have your Fiscal Month as column? I recommend to add FiscalMonthNumber as basis to calculate:

 

FiscalMonthDateFiscalMonthNumb
Mai04.05.20185
Mai02.06.20185
.........

 

So you could 

LastDay:=CALCULATE([Measure];LASTDATE(FactTable[Date])) 

and

 

LastDayPM:=VAR PrevMonth=MAX(FactTable[FiscalMonthNumber])-1
RETURN
CALCULATE([LastDay];FactTable[FiscalMonthNumber]=PrevMonth)

View solution in original post

1 REPLY 1
Floriankx
Solution Sage
Solution Sage

Hello,

 

Do you have your Fiscal Month as column? I recommend to add FiscalMonthNumber as basis to calculate:

 

FiscalMonthDateFiscalMonthNumb
Mai04.05.20185
Mai02.06.20185
.........

 

So you could 

LastDay:=CALCULATE([Measure];LASTDATE(FactTable[Date])) 

and

 

LastDayPM:=VAR PrevMonth=MAX(FactTable[FiscalMonthNumber])-1
RETURN
CALCULATE([LastDay];FactTable[FiscalMonthNumber]=PrevMonth)

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.