Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
shelbsassy
Resolver I
Resolver I

Problem getting Chiclet Slicer to filter on field

I have a dashboard that uses the chiclet slicer for the month which displays all relevant pharmacy claims data (# members, premium, total claims, total paid, etc.).  I have added a visual where we want to show the members that are new that month and what their claims impact is.  SO I pulled in the OPFROMDT which is their date of enrollment.  In this visual I want to only show the members that have the OPFROMDT the same as the selected month in the chiclet slicer.  Is there some way to have a calculation filter so the OPFROMDT = Month?  SO basically if May is selected, I only want to see members that have a start date (OPFROMDT) of 5/1/2017.  Right now it is showing all claims for May regardless of their start date.  Any help would be appreciated. Thank you!

1 ACCEPTED SOLUTION
v-yuezhe-msft
Microsoft Employee
Microsoft Employee

Hi @shelbsassy,

I make a test using the table below.
1.PNG

Create a column in the table using the following DAX, then drag the column to visual level filters and set it to 1, this way, when selecting month in chiclet slicer, the visual will return all the members that have OPFROMDT the same as the selected month.

CheckColumn = IF(MONTH(Table3[OPFROMDT])=MONTH(Table3[Date])&&YEAR(Table3[Date])=YEAR(Table3[OPFROMDT]),1,0)
2.PNG

 
However, if the above steps don’t help, please share sample data of your table.

Thanks,
Lydia Zhang

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-yuezhe-msft
Microsoft Employee
Microsoft Employee

Hi @shelbsassy,

I make a test using the table below.
1.PNG

Create a column in the table using the following DAX, then drag the column to visual level filters and set it to 1, this way, when selecting month in chiclet slicer, the visual will return all the members that have OPFROMDT the same as the selected month.

CheckColumn = IF(MONTH(Table3[OPFROMDT])=MONTH(Table3[Date])&&YEAR(Table3[Date])=YEAR(Table3[OPFROMDT]),1,0)
2.PNG

 
However, if the above steps don’t help, please share sample data of your table.

Thanks,
Lydia Zhang

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Thank you so much!  

Helpful resources

Announcements
Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Jan NL Carousel

Fabric Community Update - January 2025

Find out what's new and trending in the Fabric community.