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
dpombal
Post Patron
Post Patron

DAX Intelligence formula not working YTD

 

I am creating a quite simple report but Time Intelligence Formula do not work correctly, i have problems using time intelligence formula, however i am using a Calendar and Training sessions tables, both with date columns.

 

I have issues creating relationship

 

 

Edit_Relationship.PNG

 

Relationships

Edit_Relationship2.PNG

 

I created a base measure

 

train_load = SUM(trainings[training_load_AU])

 

and then several formulas which do not work right now...

 

ytd = TOTALYTD(trainings[train_load];Calendario[Fecha])

last 30 days

train last 30 = CALCULATE([train_load];
                       DATESINPERIOD(Calendario[Fecha] ;MAX(Calendario[Fecha]);-30;DAY)
)

Here it is the pbix file  https://1drv.ms/u/s!Am7buNMZi-gwkC5b67MrMA0lxe9c

 

 

 

 

Regards

1 ACCEPTED SOLUTION
v-ljerr-msft
Employee
Employee

Hi @dpombal,

 

Instead showing 'trainings'[train_date] on your Table visual, use Calendario[Fecha], then all measures will work as expected. Smiley Happy

 

 r3.PNG

 

Regards

View solution in original post

2 REPLIES 2
v-ljerr-msft
Employee
Employee

Hi @dpombal,

 

Instead showing 'trainings'[train_date] on your Table visual, use Calendario[Fecha], then all measures will work as expected. Smiley Happy

 

 r3.PNG

 

Regards

thanks beginner error!!

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.