• Là gì?
  • Tại sao?
  • Ai?
  • Ở đâu?
  • Làm thế nào?
  • Công nghệ
  • Sports
  • Nhà cái Việt Nam
  • Blog
Facebook Twitter Instagram
Hỏi gì?
  • Là gì?
  • Tại sao?
  • Ai?
  • Ở đâu?
  • Làm thế nào?
  • Công nghệ
  • Sports
  • Nhà cái Việt Nam
  • Blog
Hỏi gì?
Home»Blog»Data and Analytics with Dustin Ryan | Hỏi gì?
Blog

Data and Analytics with Dustin Ryan | Hỏi gì?

01/10/20212 Mins Read
Video Month to date là gì

I recently had a client give us a call asking for helping creating a calculation in her cube to show the month to date value for the previous year. Here’s the basics of the calculation I created.

View last week’s #MDXMonday -> Calculating Daily Average Sales

This calculation involve two parts. First we must create a calculation that figures the month to date value of the measure in question. To do this I used the MTD function along with the Aggregate function to roll up the Internet Sales Amount for each day in a month.

Bạn đang xem: month to date là gì

Đang hot: Mơ thấy ông nội có ý nghĩa gì, mơ thấy ông nội đánh lô đề con gì?

** Keep in mind that your date dimension and date attribute Type properties must be configured correctly in order for you to be able to use MDX time functions such as MTD, WTD, QTD, and YTD.

Now that we have the correct MTD calculation, but we need to modify this calculation to retrieve the MTD numbers for the previous year. To do that we can use the ParallelPeriod function. The ParallelPeriod function is used to navigate along a calendar hierarchy at a particular level. In this case we can use ParallelPeriod to go one member back on the Year level of the Calendar hierarchy like so:

Đang hot: Giá cá diêu hồng bao nhiêu tiền 1kg hiện nay?

image

And that’s how you create a calculation to figure the month to date for the previous year. Just an FYI, this calculation could also be used to calculate the previous year to date by swapping the MTD function for the YTD function.

Resources

  • View last week’s #MDXMonday -> Calculating Daily Average Sales
  • MDXpert.com: Great website with examples for most of the MDX functions and links back to Technet. Check it out.

Feedback?

Got any feedback on this blog post? Or do you have a calculation you’d like me to work on? Let me know in the comments! Thanks!

Đang hot: Giải mã giấc MƠ THẤY HỔ đánh con gì? | điềm LÀNH hay DỮ?

Previous Article1 kg bằng bao nhiêu gam | Hỏi gì?
Next Article #1 Cá Cơm Minh Đức Và Những Món Cá Khô Ngon Của Sài Gòn

Bài viết liên quan

Bloomberg: Evergrande vỡ nợ, khởi đầu sự sụp đổ của một đế chế bất động sản Trung Quốc

10/12/2021

Hướng dẫn làm hoa 4 cánh siêu đẹp từ giấy thủ công

22/11/2021

thiến hóa học là gì Knowledge panel

22/11/2021

tuừ điển tiếng trung Sitelinks, Top stories, Video, Knowledge panel

22/11/2021

Hướng dẫn, thủ thuật về Android

22/11/2021

tải bàn phím samsung Sitelinks, Top stories, Video

22/11/2021
Add A Comment

Leave A Reply Cancel Reply

Hot

Cách lấy sim không cần que

05/07/2022

Đa số các smartphone hiện nay đều trang bị khe chứa sim “ẩn” trong máy,…

Cách viết sớ cúng giao thừa

05/07/2022

Mlem có nghĩa là gì

05/07/2022

Cách làm trắng móng tay

05/07/2022

Cách giảm đau răng nhanh nhất

05/07/2022

Cách ghi hồ sơ xin việc

05/07/2022
Hỏi gì

Giải đáp mọi thắc mắc của bạn

Email: [email protected]
Địa chỉ: Đông vệ, Thanh Hóa

Hot

Cách lấy sim không cần que

05/07/2022

Cách viết sớ cúng giao thừa

05/07/2022

Mlem có nghĩa là gì

05/07/2022
Bình luận
  • Phạm Đức Bảo trong tải attack on titan trên điện thoại android
  • Chung Phước An Khương trong Bài tập C – Sắp xếp nhanh (Quick Sort) trong C
  • Nghi trong hộ avatar nghĩa la gì trên facebook | Hỏi gì?
  • Nguyễn Bình Gia Bảo trong Thần Nông là ông Tổ của Bách Việt
  • David trong Bella là ai? Tiểu sử của “hotgirl Bella” | Hỏi gì?
  • Điều khoản sử dụng
  • Chính sách bảo mật
© 2022 Hỏi Gì Chẵn lẻ momo

Type above and press Enter to search. Press Esc to cancel.