Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hello all!
Here's the data I'm trying to calc the previous months (February) data based on these distinct columns:
Thank you!!
Solved! Go to Solution.
Thank you, gave that one a shot but wasn't quite what I was looking for. I'd been working on this seperately with this formula and got to what I needed, not sure if this is efficient?...
New Column =
CALCULATE(
SUMX(
DISTINCT (Table'[ID]), CALCULATE(MAX('Table'[Amount]))),
DATESINPERIOD('Table'[Created Date],MAX('Table'[Created Date]),-30,DAY))
Hi @lw24
please try
NewColumn =
VAR T1 =
CALCULATETABLE (
'Table',
ALLEXCEPT (
'Table',
'Table'[File Date],
'Table'[Name],
'Table'[ID],
'Table'[Created Date]
)
)
VAR T2 =
FILTER (
T1,
FORMAT ( 'Table'[File Date], "YYMM" ) = FORMAT ( 'Table'[Created Date], "YYMM" )
)
RETURN
MAXX ( T, 'Table'[Amount] ) + 0
Thank you, gave that one a shot but wasn't quite what I was looking for. I'd been working on this seperately with this formula and got to what I needed, not sure if this is efficient?...
New Column =
CALCULATE(
SUMX(
DISTINCT (Table'[ID]), CALCULATE(MAX('Table'[Amount]))),
DATESINPERIOD('Table'[Created Date],MAX('Table'[Created Date]),-30,DAY))
User | Count |
---|---|
25 | |
12 | |
8 | |
6 | |
6 |
User | Count |
---|---|
26 | |
12 | |
12 | |
10 | |
6 |