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
I have the following Measure which works well based on my model..
Solved! Go to Solution.
Hi @Tob_P
It was a bit confusing as TP2 Posting date is 12/06/2020 which is before the very first date in the sample sales table. See below screenshot. However, I believe the proposed solution is workable but I have serious doubts about the performance. Please refer to attached sample file amended with the solution.
Total Sales On and After =
SUMX (
GENERATE (
'Nav_Item Ledger Entry',
CALCULATETABLE ( VALUES ( 'Nav_Stand Items'[Item No_] ) )
),
VAR PostingDate = 'Nav_Item Ledger Entry'[Posting Date]
VAR CurrentItem = 'Nav_Stand Items'[Item No_]
VAR CurrentCustomerSales = CALCULATETABLE ( 'Nav_Sales History Master' )
VAR FilteredSalesTable =
FILTER (
CurrentCustomerSales,
'Nav_Sales History Master'[Item No] = CurrentItem
&& 'Nav_Sales History Master'[Posting Date] >= PostingDate
)
RETURN
SUMX ( FilteredSalesTable, 'Nav_Sales History Master'[Sales] )
)
Hi @Tob_P
It was a bit confusing as TP2 Posting date is 12/06/2020 which is before the very first date in the sample sales table. See below screenshot. However, I believe the proposed solution is workable but I have serious doubts about the performance. Please refer to attached sample file amended with the solution.
Total Sales On and After =
SUMX (
GENERATE (
'Nav_Item Ledger Entry',
CALCULATETABLE ( VALUES ( 'Nav_Stand Items'[Item No_] ) )
),
VAR PostingDate = 'Nav_Item Ledger Entry'[Posting Date]
VAR CurrentItem = 'Nav_Stand Items'[Item No_]
VAR CurrentCustomerSales = CALCULATETABLE ( 'Nav_Sales History Master' )
VAR FilteredSalesTable =
FILTER (
CurrentCustomerSales,
'Nav_Sales History Master'[Item No] = CurrentItem
&& 'Nav_Sales History Master'[Posting Date] >= PostingDate
)
RETURN
SUMX ( FilteredSalesTable, 'Nav_Sales History Master'[Sales] )
)
Hi @tamerj1
Thank you for taking the time to look at this one, sorry for delay in coming back to you too. Works a treat so thank you, but yes, you are absolutely right about perfomance. It's very resource heavy!
Hi @Tob_P
how does your report look like? What columns are involved in you visual?
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 8 | |
| 6 | |
| 4 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 25 | |
| 17 | |
| 8 | |
| 8 | |
| 7 |