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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
horsebaker
Regular Visitor

Removing Sales position using different date

Dear community!

The problem I am encountering:
I have Sales data with Item positions. It is considered Orders received with "Document Date" attached to this position.
However, I also have another column which tags an item as "rejected/cancelled", which sometimes happen. This then have "Item changed date".

With this in mind, I want to create a time intelligence/Matrix that pick up;
Original order for Document date that gets removed for what date it is found to be rejected, but original position does not get adjusted;
I.e if 5 items for sales order is received in February, and 1 item is removed in May, the OR should still have 5 items in Feb, but item 1 is removed in May.

The only solution I have found removes the item on February level.

Your support would be much appreciated!

Regards,
Horsebaker



1 ACCEPTED SOLUTION
ahadkarimi
Solution Specialist
Solution Specialist

If you have any questions or need more info, just hit me up!

Original Orders =
CALCULATE(
SUM(Sales[ItemCount]),
Sales[Status] <> "Rejected")
----------------------------------
Rejected Items =
CALCULATE(
SUM(Sales[ItemCount]),
Sales[Status] = "Rejected")
-----------------------------
Adjusted Orders =
CALCULATE(
[Original Orders] - [Rejected Items],
DATESBETWEEN(
'Calendar'[Date],
MIN('Calendar'[Date]),
MAX('Calendar'[Date])))

View solution in original post

1 REPLY 1
ahadkarimi
Solution Specialist
Solution Specialist

If you have any questions or need more info, just hit me up!

Original Orders =
CALCULATE(
SUM(Sales[ItemCount]),
Sales[Status] <> "Rejected")
----------------------------------
Rejected Items =
CALCULATE(
SUM(Sales[ItemCount]),
Sales[Status] = "Rejected")
-----------------------------
Adjusted Orders =
CALCULATE(
[Original Orders] - [Rejected Items],
DATESBETWEEN(
'Calendar'[Date],
MIN('Calendar'[Date]),
MAX('Calendar'[Date])))

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

Find out what's new and trending in the Fabric community.