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
Anonymous
Not applicable

TOTALYTD until a specific date

Hi everyone,

 

Maybe the TotalYTD is not the good function for my purpose but I don't find my answer :-(.

 

Can someone could help me please? 

 

3 tables: RevenueLines (G_L) ; Calendar and Closing and the link between them in color.

 

3 measures : the first-two are OK but not the third.

 

Thanks for your help

 

2021-05-28_08-44-44.png

6 REPLIES 6
v-jayw-msft
Community Support
Community Support

Hi @Anonymous ,

 

What the [70] is in the measure2?

 

Best Regards,

Jay

Community Support Team _ Jay
If this post helps, then please consider Accept it as the solution
to help the other members find it.
Anonymous
Not applicable

2021-05-31_09-41-05.png

amitchandak
Super User
Super User

@Anonymous , Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

 

If you need YTD based on today, not based on selection, you can try a measure like

 

YTD=
var _min = date(year(today()),1,1)
var _day = today()
return
CALCULATE(sum('order'[Qty]), FILTER(ALL('Date'),'Date'[Date] >=_min && 'Date'[Date] <= _day) )

Anonymous
Not applicable

SANTEK_0-1622448440263.png

 

The very last part doesn't work 😞 @amitchandak 

Anonymous
Not applicable

Hi,

 

No. My problem is about summing all the amount of account "70" from the first day of the year until the closing date which came from an other table. 

 

This is the yellow part of my screen capture.

 

Thanks

Anonymous
Not applicable

@amitchandak I need to replace the "today var" by the closing date coming from the table "closing". But I can't manage it

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.