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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
nfowler_PDR
Helper I
Helper I

Need True JTD and YTD Revenue Amount and Labor Cost Amount from Dynamics 365 F&O

Hello,

Please be gentle! 

 

I am creatinge a Production Report that will display all active projects with their Contract Value, Invoiced Amount, Invoiced JTD/YTDRevenue Amount, Revenue JTD/YTDRevenue to be Earned Amount, Revenue to be Billed Amount, and Labor cost

 

I have 3 Problems.

 

1.

Problem: When using the [DateFinancial_Date] slicer, it is not gathering the correct values. For some reason it is not grouping all completed invoices into the selected date range because it is only taking the invoices closed within that range. 

Example: I have an invoice completed in May, but it was closed in June (with the clompleted date of the invoice dated for May) by Accounting. This invoice will not be included in the report unless I include the June dates in the slicer to include that invoice. But, that does not help because other invoices will have been closed in that time as well which will change all of the values in the matrix.

Question: How do I get all completed invoices to dispaly in the correct time period regardless of when it was closed by Accounting? 

 

2.

Problem: When trying to get Invoiced, Revenue, and Labor Cost JTD values, the values will change depanding on the selected date range slicer (this slicer is included to narrow down to all active projects in a specific period). 

Example: I want to see how much fee we have invoiced from March 1, 2022 to February 28th 2023 in the date slicer. Next to the Invoiced Amount based on the date, I want to see the Invoiced Amount JTD (From the start of the project to now) and not just from the selected date range. 

Question: Is there a way to make the JTD values stay the same regardless of the date slicer being changed?

Measure: This is the measure I have created for Labor Cost JTD. I think this is still using the first date of the date slicer to generate the values because the number will change is I go back in time, but not forward. 

 

nfowler_PDR_0-1669043380217.png

 

3.

Problem: Same as above, but for YTD

Measure: This is the measure I have created so far, but it fails to display anything. 

 

nfowler_PDR_1-1669043566363.png

 

Any help would be appreciated!

I will be online today and tomorrow to aid with more info if someone has a chance to take a look. 

 

Thank you! 

2 REPLIES 2
v-yanjiang-msft
Community Support
Community Support

Hi @nfowler_PDR ,

Please see if REMOVEFILTERS function solve your problem.

 

Best Regards,
Community Support Team _ kalyj

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hello @v-yanjiang-msft,

Thanks for taking the time to take a look at my issue. 

 

For the REMOVEFILTERS function, where and how would I integrate that to the code for:

 

Labor Cost _ Date Financial JTD =
CALCULATE (
    SUM ( FACTActual[ActualAmount_Labor_] ),
    FILTER (
        ALL ( DateFinancial ),
        DateFinancial[DateFinancial_Date] <= MAX ( DateFinancial[DateFinancial_Date] )
    )
)

 

Or:

Labor Cost _ Date Financial YTD =
CALCULATE (
    SUM ( FACTActual[ActualAmount_Labor_] ),
    FILTER (
        ALL ( DateFinancial ),
        [DateFinancial_Date]
            >= DATE ( YEAR ( MAX ( DateFinancial[DateFinancial_Date] ) ), 1, 1 )
    ),
    FILTER (
        ALL ( DateFinancial ),
        [DateFinancial_Date] <= MAX ( DateFinancial[DateFinancial_Date] )
    )
)
?
Thank you again for your time.
 
-Nat

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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