cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
sara_pinto15
Frequent Visitor

Number of months with sales

Hello. I hope they're all well.
I want to calculate the total number of months accumulated with consumption. How can I do it?

 

sara_pinto15_0-1682528596542.png

 

Thank you! 🙂

 

1 ACCEPTED SOLUTION
wdx223_Daniel
Super User
Super User

NewMeasure=ROWNUMBER(SUMMARIZE(ALL(Sales),Dates[Year],Dates[Month]),ORDERBY(Dates[Year],ASC,Dates[Month],ASC))

View solution in original post

3 REPLIES 3
v-shex-msft
Community Support
Community Support

Hi @sara_pinto15 ,

Did the above suggestions help with your scenario? if that is the case, you can consider Kudo or Accept the helpful suggestions to help others who faced similar requirements.

If these also don't help, please share more detailed information and description to help us clarify your scenario to test.

How to Get Your Question Answered Quickly 

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.
wdx223_Daniel
Super User
Super User

NewMeasure=ROWNUMBER(SUMMARIZE(ALL(Sales),Dates[Year],Dates[Month]),ORDERBY(Dates[Year],ASC,Dates[Month],ASC))

Thank you! 😉

Helpful resources

Announcements
Join Arun Ulag at MPPC23

Join Arun Ulag at MPPC23

Get a sneak peek into this year's Power Platform Conference Keynote.

PBI Sept Update Carousel

Power BI September 2023 Update

Take a look at the September 2023 Power BI update to learn more.

Learn Live

Learn Live: Event Series

Join Microsoft Reactor and learn from developers.

Dashboard in a day with date

Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

Top Solution Authors
Top Kudoed Authors