Coder Social home page Coder Social logo

powerbi-visuals-sampleslicer's Introduction

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

powerbi-visuals-sampleslicer's People

Contributors

blackleaden avatar eugeneelkin avatar microsoftopensource avatar mrmeison avatar msftgits avatar vizakhar avatar zbritva avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

powerbi-visuals-sampleslicer's Issues

what a great documentation!

Can you type a little more on the "as follows:" section?

Add filter in the capabilities.json as follows:

The filter entry enables communication of selection-related information between the visual and the hosting application. The entry is used for both the discrete selections and the bulk selections of the Advanced Filter.

Dead link

Link in the below text is dead:

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

Can not run `pbiviz start` out of the box

I did npm install, then I ran pbiviz start. This gives a lot of errors mostly about jquery typings.

error  TYPESCRIPT  /src/sampleSlicer.ts : (81,24) Generic type 'JQuery<TElement, HTMLElement>' requires 2 type argument(s).

API version invalid error

repro:

  1. clone local repo and enter the visual folder
  2. npm install
  3. Launch visual with pbiviz start OR npm run start result error and fails
> [email protected] start
> pbiviz start

 info   Building visual...
 error  VALIDATION   Invalid API Version v2.6.0

TS2306 File is not a module

I followed this and was getting an error compiling:
TS2306: File '.../node_modules/powerbi-models/dist/models-noexports.d.ts' is not a module.
I removed this file from tsconfig.json and it worked.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.