Forum Discussion
Slicer Monthly
- 2 years ago
Hi Anonymous
You need to create a calendar table with the needed columns.Please refer to the linked article, it also includes the needed scripts:
https://radacad.com/do-you-need-a-date-dimension
If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly
Yes, there is a way to create a slicer for a monthly select in Power BI. You can do this by using the date hierarchy in the slicer visual. Here's how you can do it:
- Open the Power BI desktop and load your data using the Get Data option.
- Once the data has been loaded, select the slicer icon presented in the visualization pane.
- In the slicer visual, drag and drop the date field that you want to use for the slicer.
- In the field well, select the down arrow next to the date field and choose the "Date Hierarchy" option.
- Expand the date hierarchy and select the "Month" level.
This will create a slicer that allows you to filter your data by month. You can now select the desired month in the slicer to filter your data accordingly.
Alternatively, you can create a new column or measure in your data model that extracts the month from the date column using a formula like Month([Date Column]), where [Date Column] represents the name of the column where the date is located. Once you have created the new column or measure, you can add it to your Power BI slicer and filter your data based on the month by selecting the relevant month in your slicer.
Best regards,
Johannes
- Anonymous2 years agoNot applicable
I dont seem to have Date Hierarchy as an option