Power BI Giving users the option to include or exclude a type of data

0 votes
I'm working on my first Power BI report, which will analyze data on employee absences. A field called 'Absence Type' is included in the data, and it categorizes the type of absence that each record corresponds to.

I'd like my users to be able to see my report with and without the 'Pandemic' Absence Type. I can exclude it from all sites to hard-filter it, but that gives the users no control.

I considered utilizing a slicer with a new custom column, but I believe it would be too perplexing. If the Absence Type column had a 'Yes' or 'No' option for whether the absence was 'Pandemic,' users may examine the data without 'Pandemic' entries or just the 'Pandemic' entries, but not both.

They may easily deselect everything and get no results, even with a multiselect slicer.

I'd want to have either a 'Include Pandemic?' slider where they can select Yes or No (with Yes indicating everything and No indicating everything excluding Pandemic records) or a button where they can toggle the Pandemic records in and out of the visuals.
Feb 18, 2022 in Power BI by surbhi
• 3,820 points
3,652 views
Is there any way so we can give only one option for filter out the excluded result.

1 answer to this question.

0 votes

The best option, in my opinion, is to create a custom column with two values:

If the type is Pandemic, the term "pandemic" is used. If the type isn't pandemic, it's called non-pandemic.

As a hierarchical slicer, you'd utilize this new column + Absence Type.

This would allow the user to choose between the following options:

  • Select all  (If the user deselects everything a select all will also be applied)
  • Non pandemic only
  • Pandemic only
  • Any one or more types of absence

Unlock the Power of Data Visualization with Our Comprehensive Power BI Course!

answered Feb 18, 2022 by CoolCoder
• 4,420 points

Related Questions In Power BI

+1 vote
1 answer
0 votes
1 answer

Why are my Power BI reports taking a long time to refresh, even though the source data has only changed slightly?

Long Power BI refresh times, even due ...READ MORE

answered Dec 18, 2024 in Power BI by anonymous
• 2,840 points

edited Mar 6 170 views
0 votes
1 answer

Displaying Table Schema using Power BI with Azure IoT Hub

Answering your first question, Event Hubs are ...READ MORE

answered Aug 1, 2018 in IoT (Internet of Things) by nirvana
• 3,130 points
1,524 views
+1 vote
1 answer

Unable to install connector for Power Bi and PostgreSQL

I think the problem is not at ...READ MORE

answered Aug 22, 2018 in Power BI by nirvana
• 3,130 points
2,870 views
+2 votes
2 answers

Migrate power bi collection to power bi embedded

I agree with Kalgi, this method is ...READ MORE

answered Oct 11, 2018 in Power BI by Hannah
• 18,520 points
1,654 views
+1 vote
1 answer

Connect power bi desktop to dataset and create custom reports

Open power bi report nd sign in ...READ MORE

answered Oct 10, 2023 in Power BI by Monika kale

edited Mar 5 1,800 views
0 votes
1 answer

If there a way to have the current month by default in a KPI representing MoM% in Power BI

The PREVIOUSMONTH DAX function can be used ...READ MORE

answered Feb 16, 2022 in Power BI by CoolCoder
• 4,420 points
2,447 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP