Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreWe've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. 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]))
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 9 | |
| 6 | |
| 3 | |
| 2 | |
| 2 |
| User | Count |
|---|---|
| 23 | |
| 14 | |
| 10 | |
| 6 | |
| 5 |