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.
hi guys,
got a questions for you.
i have a revenue table and a dim date table, both are connected.
rev table looks something like this :
client|date|revenue
i want to know which client hasnt made a transaction over the last 3 months buy cant find the correct syntax.
hopefully someone can help 🙂
thanks!!!
Solved! Go to Solution.
Hi @orihait
Try the below Measure or the attached file.
Measure =
VAR __clientWithSales =
CALCULATETABLE(
VALUES( 'Table'[client] ),
DATESINPERIOD( 'calendar'[Date], TODAY(), -3, MONTH )
)
RETURN
COUNTROWS(
EXCEPT(
VALUES( 'Table'[client] ),
__clientWithSales
)
)
Try something like this
Rolling 3 = CALCULATE(sum(Table[Revenue]),DATESINPERIOD('Date'[Date Filer],MAX(Table[Date]),-3,MONTH)) +0
and use with show rows with no on client
Hi @orihait
Try the below Measure or the attached file.
Measure =
VAR __clientWithSales =
CALCULATETABLE(
VALUES( 'Table'[client] ),
DATESINPERIOD( 'calendar'[Date], TODAY(), -3, MONTH )
)
RETURN
COUNTROWS(
EXCEPT(
VALUES( 'Table'[client] ),
__clientWithSales
)
)
thank you so much 🙂
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
112 | |
100 | |
76 | |
74 | |
49 |
User | Count |
---|---|
146 | |
108 | |
106 | |
90 | |
62 |