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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
martaredondo
Helper II
Helper II

YTD total is right but value for each row is wrong

Hi there,

 

I have created a measure to calculte YTD debits like this: 

YTD Account Debits = TOTALYTD(SUM(vwOPEX_REPORTING[Account Debits]),vwOPEX_REPORTING[Date])
 
When I put this measure into a table, the total YTD Account Debits provides the right value but the value in each row are wrong:
Untitled4.png
 
Does anyone know why this happens?
 
I apreciate your help!
 
Thanks,
Marta
1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

You are using a date from your fact vwOPEX_REPORTING. It means when you view by Account, you might have few dates missing for few accounts. And if there are missing dates the time intelligence function might not give the correct results. 

 

Please create a separate calendar and use it

https://docs.microsoft.com/en-us/dax/calendar-function-dax

https://radacad.com/creating-calendar-table-in-power-bi-using-dax-functions

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

1 REPLY 1
amitchandak
Super User
Super User

You are using a date from your fact vwOPEX_REPORTING. It means when you view by Account, you might have few dates missing for few accounts. And if there are missing dates the time intelligence function might not give the correct results. 

 

Please create a separate calendar and use it

https://docs.microsoft.com/en-us/dax/calendar-function-dax

https://radacad.com/creating-calendar-table-in-power-bi-using-dax-functions

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

Top Kudoed Authors