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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Employee
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
Employee
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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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