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
nmhung49
Helper II
Helper II

Accumulate YTD

Hi everyone
I need help in this case
Now my dax only correct for not show Product column
For example as shown below
When I select Month = May => Product A => Acumulate = 19 and Product B => Acumulate = 27

 

nmhung49_0-1632198004671.png

Please see the attached file  

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@nmhung49 , Few more changes are required. Please find the attached file after signature

 

Date Table, Use Date from date table in formula. Month and Year in Date table

View solution in original post

3 REPLIES 3
Jihwan_Kim
Super User
Super User

Hi,

I am not sure if I understood your question correctly, but I think Product C also need to show accumulate number even it does not have sales in May.

I suggest having a proper dim-date table, assigning it as a date table, and having a one-to-many relationship with the data table.

Please check the below picture and the link down below, if it is what you are looking for.

 

Picture1.png

 

 

Link to the sample pbix file 

 

 

 

If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Go to My LinkedIn Page


amitchandak
Super User
Super User

@nmhung49 , Few more changes are required. Please find the attached file after signature

 

Date Table, Use Date from date table in formula. Month and Year in Date table

amitchandak
Super User
Super User

@nmhung49 , Mark date table as the date table , Option on right click.

 

Create a new column for year in date table and use

 

Year = Year([Date])

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.