Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
Hi there,
I have this measure to calculate my Cost Price for the whole year, based on the slicer "Calendar[Year]". I do have many other date slicers. I still only get the value for the month selected "Calendar[Month]", not the whole year. Please help.
Solved! Go to Solution.
Hard to say without more info on your report and especiallly the sematic model relationship, but if there is an active relationship between that fact table and the Calendar table, try something like:
CostPriceForThisYear = CALCULATE( SUM('GL_LedgerTrans'[Credit])
, 'GL_LedgerTrans'[OffsetAcctID-3] = "632"
, 'GL_LedgerTrans'[AccountID-4] = "1541"
, ALL('Calendar')
, VALUES('Calendar'[Year]))
Wow, it works. You are so amazing. Thank you very much. My day is brighter now.
Hard to say without more info on your report and especiallly the sematic model relationship, but if there is an active relationship between that fact table and the Calendar table, try something like:
CostPriceForThisYear = CALCULATE( SUM('GL_LedgerTrans'[Credit])
, 'GL_LedgerTrans'[OffsetAcctID-3] = "632"
, 'GL_LedgerTrans'[AccountID-4] = "1541"
, ALL('Calendar')
, VALUES('Calendar'[Year]))
User | Count |
---|---|
17 | |
14 | |
14 | |
13 | |
12 |
User | Count |
---|---|
19 | |
15 | |
15 | |
10 | |
9 |