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
CJensen
Frequent Visitor

Sales YTD last year shows wrong result

Hi 

I have problem with getting the correct numbers from sales YTD last year and sales last month. It looks likes the numbers are aggretated, when I add the months the numbers are correct. 

 

I am bit stuck on what to do. Do you have any input? 

2019-03-18_0858.png

 

 

3 REPLIES 3
Anonymous
Not applicable

Hi @CJensen ,

 

This issue is might be becuse of incorrect relationship or no relationship in your data model.
Can you Please go to relationship view and see how these filelds are related?

 

Thanks,
Amit

Hi Amit

 

Thank you for your reply. Ive added the screenshot of the relationships and the sample file. Im uncertain of where the error could be. 2019-03-18_0949.png

 

Sample file

Anonymous
Not applicable

Hi ,

You are using Custom Date table, can you Please mark your date table as "Mark as date table".
If you are trying to acieve runnning total using that measure, try to re-write the logic with TotalYTD function in dax.

 

Salg total sidste år =

TOTALYTD(Salgslinjer[Samlet Salg],Dato[Date])

 

Thanks,
Amit

 

 

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.