Forum Discussion
Not working: sum based on selected slicer values and additional criterias
Thanks for your response mate.
The following DAX solved the issue:
CALCULATE(
SUM(facts_general_ledger[values]]),
FILTER(
ALL(dim_calendar),
VALUE(dim_calendar[year]=SELECTEDVALUE(dim_calendar[year])-1
)
)
2 Replies
- Greg_Deckler
Community Champion
Mjolnir You may find this helpful - https://community.powerbi.com/t5/Community-Blog/To-bleep-With-Time-Intelligence/ba-p/1260000
Also, see if my Time Intelligence the Hard Way provides a different way of accomplishing what you are going for.
https://community.powerbi.com/t5/Quick-Measures-Gallery/Time-Intelligence-quot-The-Hard-Way-quot-TITHW/m-p/434008Also:
- Mjolnir
Helper I
Thanks for your response mate.
The following DAX solved the issue:
CALCULATE(
SUM(facts_general_ledger[values]]),
FILTER(
ALL(dim_calendar),
VALUE(dim_calendar[year]=SELECTEDVALUE(dim_calendar[year])-1
)
)