Skip to content
This repository has been archived by the owner on Apr 19, 2024. It is now read-only.

microsoft/powerbi-visuals-sampleslicer

Repository files navigation

PowerBI Slicer custom visual sample

Build Status

Demonstrates the use of the Advanced Filtering API introduced in the version 1.7 of PowerBI Visuals Tools.

This PowerBI Custom Visual relies on the Advanced Filter API for bulk data-point selection and PowerBI Visuals Interactivity Utils for discrete data-point selection.

Understanding the visual

The visual lets the user select numeric data inputs to be displayed in all other visuals in the same report sheet. The user can either select discrete values or a range by adjusting the sliders.

See a demo PowerBI report to get an idea about the visual's functionality.

Setting up the environment

You will first need to set up your environment as detailed here.

Installing dev dependencies

Once you have cloned this example, run these commands to install dependencies and to connect the visual into powerbi.

npm install # This command will install all necessary modules

Starting the dev app

pbiviz start

Understanding the code

  1. Code structure
  2. Discrete selection with the PowerBI Visuals Interactivity Utils
  1. Advanced selection with the Advanced Filter API
  1. Bookmarks support
  1. Slicer synchronization support

About

Demonstrates creating a powerbi slicer visual using various powerbi filtering APIs and features.

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published