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
Hello,
I’m trying to get the sum of just the first day of the year of the applied slicer. But I can’t figure out how to use just the year of the slicer to get it done.
In the CALCULATE() when I use just the ALLEXCEPT() I get the sum of all values and when I use the ALLEXCEPT() with FILTER() I get a blank result.
I’ve searched for similar issues, but couldn’t find any answer that solve this problem.
Solved! Go to Solution.
Hi, @r_fioretti
You may need to encapsulate all conditions into function 'filter'.
Please check if the following formula works for you.
Saldo Inicial(YTD) =
VAR bg_dt =
FIRSTDATE ( DATESYTD ( 'Caixa(YTD)'[Data] ) )
VAR si =
CALCULATE (
SUM ( 'Caixa(YTD)'[Valor] ),
FILTER (
ALLEXCEPT ( 'Caixa(YTD)', 'Caixa(YTD)'[Data] ),
'Caixa(YTD)'[Valor] = "Saldo Inicial"
&& 'Caixa(YTD)'[Data] = bg_dt
)
)
RETURN
si
Best Regards,
Community Support Team _ Eason
Hi, @r_fioretti
You may need to encapsulate all conditions into function 'filter'.
Please check if the following formula works for you.
Saldo Inicial(YTD) =
VAR bg_dt =
FIRSTDATE ( DATESYTD ( 'Caixa(YTD)'[Data] ) )
VAR si =
CALCULATE (
SUM ( 'Caixa(YTD)'[Valor] ),
FILTER (
ALLEXCEPT ( 'Caixa(YTD)', 'Caixa(YTD)'[Data] ),
'Caixa(YTD)'[Valor] = "Saldo Inicial"
&& 'Caixa(YTD)'[Data] = bg_dt
)
)
RETURN
si
Best Regards,
Community Support Team _ Eason
Hi
Firts get the year selected ==> var selectedyear=selectevalue(date[year])
calculate the first day of the year= var firstday=calcualte(min(date[Date]),date[year]=selectedyear)
and after your sum
calculate(sum(x), date[date]=firstday)
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 |