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,516 views

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

0 votes
1 answer
0 votes
0 answers
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,359 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,755 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,527 views
+1 vote
1 answer

Connect power bi desktop to dataset and create custom reports

Yes using Power BI REST API to ...READ MORE

answered Sep 18, 2018 in Power BI by Kalgi
• 52,350 points
1,675 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,331 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