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
| Customer | Date | Order Amount | ||
| Customer A | Jan 20 | 10 | ||
| Customer A | Feb 20 | 5 | ||
| Customer A | Mar 20 | 10 | ||
| Customer B | Feb 20 | 20 | ||
| Customer B | Mar 20 | 5 | ||
| Customer B | May 20 | 20 | ||
| Customer C | May 20 | 10 |
| Customer | Date | Order Amount | Active Customer | |||
| Customer A | Jan 20 | 10 |
| No | ||
| Customer A | Feb 20 | 5 |
| No | ||
| Customer A | Mar 20 | 10 |
| No | ||
| Customer B | Feb 20 | 20 |
| Yes | ||
| Customer B | Mar 20 | 5 |
| Yes | ||
| Customer B | May 20 | 20 |
| Yes | ||
| Customer C | May 20 | 10 |
| Yes |
Solved! Go to Solution.
try following
Flag =
VAR __latestDate = CALCULATE ( MAX ( Table[Date] ), ALLEXCEPT ( Table, Table[Customer] ) )
VAR __latestEOM = EOMONTH ( __latestDate, 0 )
VAR __todayEOM = EOMONTH ( TODAY(), 0 )
RETURN
IF ( __latestEOM = __todayEOM, "YeS", "No" )
I would ❤ Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos whoever helped to solve your problem. It is a token of appreciation!
Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!
Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo
If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤
Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.
Hi,
Please try a simpler logic column as below:
Active Customer =
IF (
CALCULATE (
COUNT ( 'Table'[Customer] ),
FILTER (
'Table',
'Table'[Customer] = EARLIER ( 'Table'[Customer] )
&& MONTH ( 'Table'[Date] ) = MONTH ( TODAY () )
)
) >= 1,
"Yes",
"No"
)
The result shows:
See my attached pbix file.
Best Regards,
Giotto
try following
Flag =
VAR __latestDate = CALCULATE ( MAX ( Table[Date] ), ALLEXCEPT ( Table, Table[Customer] ) )
VAR __latestEOM = EOMONTH ( __latestDate, 0 )
VAR __todayEOM = EOMONTH ( TODAY(), 0 )
RETURN
IF ( __latestEOM = __todayEOM, "YeS", "No" )
I would ❤ Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos whoever helped to solve your problem. It is a token of appreciation!
Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!
Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo
If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤
Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.
I think its actually probably simpler to add a field to your customer table with the most recent order date, and then relate those two tables. That way you can cross filter all relevant customer facts and dims on the attribute.
By the way, @parry2k's solution should work but I find the answer a bit too specific.
Feel free to reply here if you need more help with what i mean.
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.