cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
NirH_at_BITeam Frequent Visitor
Frequent Visitor

A simple YTD DAX doesn't work as expected - why?

Hi,

 

I'm struggeling to understand why my TOTALYTD function doesn't work as it should be.

What am I doing wrong?

 

YTD Measure.PNG

 

 

 

Thanks!

NH

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Moderator v-qiuyu-msft
Moderator

Re: A simple YTD DAX doesn't work as expected - why?

Hi @NirH_at_BITeam

 

You need to create a Calendar table which contains a date column, build a relationship between Invoice table and Calendar table based on the date column. Then create a measure like below: 

 

InvoiceAmount YTD = TOTALYTD([InvoiceAmount Measure], Calendar[Date])

 

Best Regards,
Qiuyun Yu 

Community Support Team _ Qiuyun Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
1 REPLY 1
Moderator v-qiuyu-msft
Moderator

Re: A simple YTD DAX doesn't work as expected - why?

Hi @NirH_at_BITeam

 

You need to create a Calendar table which contains a date column, build a relationship between Invoice table and Calendar table based on the date column. Then create a measure like below: 

 

InvoiceAmount YTD = TOTALYTD([InvoiceAmount Measure], Calendar[Date])

 

Best Regards,
Qiuyun Yu 

Community Support Team _ Qiuyun Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Back to School Contest

Back to School Contest

Engage and empower students with Power BI!

MBAS Gallery

Watch Sessions On Demand!

Continue your learning in our online communities.

Summit Australia 2019

Summit Australia 2019

Travel to Melbourne and network with thousands of peers!

Top Ideas
Users Online
Currently online: 212 members 2,418 guests
Please welcome our newest community members: