Forum Discussion
Sum by date with condition
- 4 years ago
Hi,
Thank you for your feedback.
If you only need to have a Month Slicer, I suggest creating a Month Column when creating a Calendar table. I added a Month column into a calendar table in the attached file.
Please check the below picture and the attached file whether it suits your requirement.
Hi,
Please check the below picture and the attached pbix file.
Expected measure: =
CALCULATE (
SUM ( Data[Sales] ),
DATESINPERIOD ( 'Calendar'[Date], LASTDATE ( 'Calendar'[Date] ), 3, MONTH )
)
Only apple expected measure: =
CALCULATE ( [Expected measure:], 'Item'[Item] = "Apple" )
Hi Kim,
May you include a month filter as exmaple? I can only show 1 result when a date picked instead of a completed list.
Thank you.
- Jihwan_Kim4 years ago
Super User
Hi,
Thank you for your feedback.
If you only need to have a Month Slicer, I suggest creating a Month Column when creating a Calendar table. I added a Month column into a calendar table in the attached file.
Please check the below picture and the attached file whether it suits your requirement.