Forum Discussion
Need help with a calculated column
- 8 years ago
HI Anonymous
I just changed
(sum('Fact Vacancy_Indvi'[Addition]))
to
(sum('Fact Vacancy_Indvi'[Mes]))
- 8 years ago
Hi Anonymous
See if this helps.
Do you want the resulting sum only against the first item of that date?
=
VAR Firstitem =
FIRSTNONBLANK (
CALCULATETABLE (
VALUES ( Table1[ID] ),
FILTER ( ALL ( Table1 ), Table1[Date] = EARLIER ( Table1[Date] ) )
),
Table1[ID]
)
RETURN
IF (
Table1[ID] = Firstitem,
CALCULATE ( SUM ( Table1[Value] ), ALLEXCEPT ( Table1, Table1[Date] ) ),
BLANK ()
)
- Anonymous8 years agoNot applicable
Thanks Zubair,
I have tried your formula, but I get an empty column, below is my screeen shot.
Kindly let me know if you need any more info
column =
VAR Firstitem =
FIRSTNONBLANK (
CALCULATETABLE (
VALUES ( 'Fact Vacancy_Indvi'[Did] ),
FILTER ( ALL ( 'Fact Vacancy_Indvi' ), 'Fact Vacancy_Indvi'[Date] = EARLIER ( 'Fact Vacancy_Indvi'[Date] ) )
),
'Fact Vacancy_Indvi'[Did]
)
RETURN
IF (
'Fact Vacancy_Indvi'[Did] = Firstitem,
CALCULATE ( (sum('Fact Vacancy_Indvi'[Addition])) , ALLEXCEPT ( 'Fact Vacancy_Indvi', 'Fact Vacancy_Indvi'[Date] ) ),
BLANK ()
)Thanks,
- Zubair_Muhammad8 years agoCommunity Champion
Hi Anonymous
It worked with the first sample you provied :smileysad:
Could you share the file?
- Anonymous8 years agoNot applicable
Hi Zubair_Muhammad ,
Below is the link for the sample dataset , kindly let me know if you need anything else
https://drive.google.com/open?id=148r_DPdsPz9aZACA4CcFr70MnpD5VUvl
Thanks,