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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
NickProp28
Post Partisan
Post Partisan

Calculate Cumulative by year

Dear Community, 

 

Good Day.

Please have a look on this pbix: https://ufile.io/5uxflmsc

NickProp28_0-1611648522920.png

In this pbix, i have the data for 2 year and comparing to the particular month when month slicer is selected.

I would like to create another new matrix table which is similar to this attached picture but is in Cumulative form.

For example, when month slicer is selected 'March'. The cumulative table will sum up January,February and March data for Consol#, Shipment# and Chargeable of the year. 

I have tried to referred many DAX solutions but all of it does not works for me.

 

Appreciate any helps provided.

1 ACCEPTED SOLUTION
MFelix
Super User
Super User

Hi @NickProp28 ,

 

Crreste the following measure:

Consol= TOTALYTD( count(ConsolShipment[Consol ID]);'Calendar'[Date])

 

Now you just need to do the same measure for the rest of the columns you need:

 


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



View solution in original post

1 REPLY 1
MFelix
Super User
Super User

Hi @NickProp28 ,

 

Crreste the following measure:

Consol= TOTALYTD( count(ConsolShipment[Consol ID]);'Calendar'[Date])

 

Now you just need to do the same measure for the rest of the columns you need:

 


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



Helpful resources

Announcements
PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.