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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

Reply
TBoat
Frequent Visitor

Add Date Filter to Logic within Table - Earlier

Hi,

 

I am so close to getting the correct result I want.

 

Can I just put a filter on this to get the correct Associated Date @ Account #2 with the Cost Source in this Calculated Column?

 

Here is my Calculated Column. It has the Cost Source in the right rows, but just I need the correct Cost Source Data associated with that Account #2 and Date.

 

Thanks for the Help!

 

 

New column =
                maxx(filter(MonthlyFinancials,
                        MonthlyFinancials[da_Uid] = earlier(MonthlyFinancials[da2_Uid]) ),
                                    MonthlyFinancials[CostsSource])GM Saved.png

 

3 REPLIES 3
TBoat
Frequent Visitor

amitchandak
Super User
Super User

@TBoat , what is the date logic you want? As of neither it is sum or max.

 

The information you have provided is not making the problem clear to me. Can you please explain with an example.

Appreciate your Kudos.

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

Hi @amitchandak Thanks for your help with this.

 

I watched your video and tried to create the calculated column like you did in the video and it gave me a circular error. I Think there has to be a filter with the Date or some other reference Account ID to get the correct Months data associated with that cost.

 

Here is a sample dataset. Hopefully you can help me find a solution to get the Sales & Costs lined up so I can get the Gross Margin % at the detailed Account Level. In this example I want the C/S Co 26'    Cost to be on the New-Co 263 line so I can get the % GM with that Associated sale. The 34.5% should be on the New-Co 263 Line. The Sales Line item data has that Account #2 which references the Cost line item I think this should be easy to reference?

 

Thanks again for all your Help!! 🙂

 

https://achillesanalytics15-my.sharepoint.com/:u:/g/personal/trevor_achilles-analytics_com/ERT1L5Erg...

 

GM Exp.png

 

 

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

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! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

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