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
Fabrizio
Regular Visitor

TOTALYTD - In table with monthly breakdown - current month / future month not shown correctly

Hi!

This is my first question i am posting here, so i hope i manage to explain my problem: 

 

I have daily invoiced quantities. I would like to show the quantities in a table, listed by month. 

 

As measures, i show the monthly quantities and the cumulated quantities (YTD) 

 

My Problem: If i use YTD, all future Months have the same value filled in (Value as of YTD Today). 

I managed to hide the future months (including current month) like this:

 

IF(
LASTDATE('Date'[Date]) > TODAY(),
BLANK(),
CALCULATE('Actuals'[Total Actual], DATESYTD('Date'[Date])))
 
But i would like to see the TOTALYTD including the current month. So for now (Today is 16.03.) - March and the following months are shown blank in my table. But March should show Total YTD until yesterday, April and following should stay empty.
 
Any Idea how i could solve this? 
 
Thanks!
1 ACCEPTED SOLUTION
johnt75
Super User
Super User

try changing the LASTDATE line to

LASTDATE( 'Date'[Date] > EOMONTH(TODAY(),0 )

View solution in original post

2 REPLIES 2
Fabrizio
Regular Visitor

Hi johnt75, works perfectly. Thanks for your immediate help!

 

 

IF(
LASTDATE('Date'[Date]) > EOMONTH(TODAY(),0),
BLANK(),
CALCULATE('Actuals'[Total Actual], DATESYTD('Date'[Date])))
johnt75
Super User
Super User

try changing the LASTDATE line to

LASTDATE( 'Date'[Date] > EOMONTH(TODAY(),0 )

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.