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
android1
Post Patron
Post Patron

Filter by Sunday & All Public Holidays

Hi,

 

I have a calculated column Day = WEEKDAY(vw_PivotChargesFrontPage[Visits_Date],2).

If I select 7 in a slicer then my data is filtered for Sundays.

 

I have a column VisitsDate which contains the date of every day in the year. I have created a group (Public Holiday) from this & put every date that is a public holiday in it. I apply this to a slicer & when I select Public Holiday my data is filtered to show only Public Holiday data.

 

How do I show data from Public Holidays & Sundays at the same time?

 

 

1 ACCEPTED SOLUTION
v-piga-msft
Resident Rockstar
Resident Rockstar

Hi @android1,

 

I 'm not clear about how do you group your public holiday. I just made a test with a sample data accoring to your description.

 

I grouped several days from column Visits_Date as holiday and the rest as other group.

 

Also I created the Day column with your formula.

 

Then I create the two Slicer with Day and the Group like below which could filter out the days that are Public Holidays & Sundays.

Capture.PNG

 

Hope this what you want. If I misunderstand your requirement, please share some data sample and your expected output.

 

Best Regards,

Cherry

Community Support Team _ Cherry Gao
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

3 REPLIES 3
v-piga-msft
Resident Rockstar
Resident Rockstar

Hi @android1,

 

Have you solved your problem?

 

If you have solved, please always accept the replies making sense as solution to your question so that people who may have the same question can get the solution directly.

 

If you need additional help, please share some data sample and your expected output.

 

Best Regards,

Cherry

Community Support Team _ Cherry Gao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
v-piga-msft
Resident Rockstar
Resident Rockstar

Hi @android1,

 

I 'm not clear about how do you group your public holiday. I just made a test with a sample data accoring to your description.

 

I grouped several days from column Visits_Date as holiday and the rest as other group.

 

Also I created the Day column with your formula.

 

Then I create the two Slicer with Day and the Group like below which could filter out the days that are Public Holidays & Sundays.

Capture.PNG

 

Hope this what you want. If I misunderstand your requirement, please share some data sample and your expected output.

 

Best Regards,

Cherry

Community Support Team _ Cherry Gao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
alexei7
Continued Contributor
Continued Contributor

Hi @android1,

 

I'm a bit confused about what your data looks like.

 

Would you be able to share samples of your table(s)?

 

Thanks

Alex

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.