cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
nmhung49
Helper I
Helper I

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

Did I answer your question? Mark my post as a solution! Appreciate your Kudos!! !!
Dashboard of My Blogs !! Connect on Linkedin

Learn Power BI Beginners !! Advance Power BI Concepts !! Power BI For Tableau User !! Learn Power BI in Hindi !!
Proud to be a Super User!

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 accept it as the solution to help other members find it faster, and give a big thumbs up.

Best regards, JiHwan Kim

Linkedin: https://www.linkedin.com/in/jihwankim1975/

Twitter: https://twitter.com/Jihwan_JHKIM

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

Did I answer your question? Mark my post as a solution! Appreciate your Kudos!! !!
Dashboard of My Blogs !! Connect on Linkedin

Learn Power BI Beginners !! Advance Power BI Concepts !! Power BI For Tableau User !! Learn Power BI in Hindi !!
Proud to be a Super User!

View solution in original post

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])

Did I answer your question? Mark my post as a solution! Appreciate your Kudos!! !!
Dashboard of My Blogs !! Connect on Linkedin

Learn Power BI Beginners !! Advance Power BI Concepts !! Power BI For Tableau User !! Learn Power BI in Hindi !!
Proud to be a Super User!

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Power BI October Update 2021.jpg

Power BI Release

Click here to read more about the October 2021 Release!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Teds Dev Camp Oct. 2021 768x460.jpg

Power BI Dev Camp - October 28th, 2021

Mark your calendars and join us for our next Power BI Dev Camp!