Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hey, the Date or Calendar Table is very usefull for Time Intelligence calculation. First I suggested something that doesn't need it, but now I really don't understand what you mean with "Last Period".
Let's assume I have a selection from 1-1-2020 to 3-1-2020. There area three months there.
Which are the Last period and the first period?
Knowing this might help us to help you.
Regards,
Happy to help!
Hello @Anonymous,
You may try:
Total Orders (First Date) =
CALCULATE (
SUM ( Orders[Order Quantity] ),
FILTER ( Orders, Orders[Order Date] = MIN ( Orders[Order Date] ) )
)
Total Orders (Last Date) =
CALCULATE (
SUM ( Orders[Order Quantity] ),
FILTER ( Orders, Orders[Order Date] = MAX ( Orders[Order Date] ) )
)
Cheers!
Vivek
If it helps, please mark it as a solution
Kudos would be a cherry on the top 🙂
https://www.vivran.in/
Connect on LinkedIn
Hi. It sound a bit tricky. Let me see if can get it. Then you need two measures. One for the first period and other for the last. The periods are complete months.
Total Orders (First Date) =
CALCULATE (
SUM ( Orders[Order Quantity] ),
FILTER ( ALL(Orders[Order Date]),
Orders[Order Date] <= EOMONTH( MIN ( Orders[Order Date] ) ; 0)
)
)
Total Orders (Last Date) =
CALCULATE (
SUM ( Orders[Order Quantity] ),
FILTER ( ALL(Orders[Order Date]),
Orders[Order Date] > EOMONTH( MAX ( Orders[Order Date] ) ; -1)
)
)
With this you can compare the last month and the first month consider in the slicer for the orders.
Hope this works.
Regards,
Happy to help!
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 6 | |
| 5 | |
| 5 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 24 | |
| 21 | |
| 15 | |
| 12 | |
| 10 |