Switching “OR” in order to “AND” Reason having Strength BI Slicers

Goal: Produce the requisite determined industries to alter “OR” so you can “AND” logic for Electricity BI slicers (native slicer therefore the hierarchySlicer).

I have already been using Power BI to own half a year now. Such as previous BI units I have used, a few hacks help alter apparently hopeless business standards to your awesome delighted reactions:

A few months back, I found myself questioned to switch the fresh new reason contained in this a custom made visual, the fresh hierarchySlicer, off exhibiting study predicated on “OR” reasoning so you’re able to proving studies centered on “AND” logic. Once a bit of research and lots of efforts, I’m happier that that the necessary cheat has been discovered!

Borrowing from the bank what of Deprive Collie: The more you select, the greater number of your “get”. As you look for a great deal more contents of your slicer, Stamina BI shows the new connection of data or the line of a number of issues came across because of the selecting the slicer things. With each extra slicer items chose, the full pieces of data sliced develops.

No matter what business specifications was, at the end of the day you want to determine which players inside the a team have prominent keeps. We need to do an enthusiastic intersection of investigation. Thus let’s say that we was finding knowing and therefore countries’ flags are like one another centered on colour and details. We will introduce that it having a couple of some other Energy BI slicers:

In the event that items in the slicer was basically chose therefore the number of issues chose on the slicer was equal to what number of chosen details to have a country, show the fresh new nations

  1. Local slicer
  2. hierarchySlicer

I wish to feel transparent on how the knowledge is actually arranged getting replicating this process. We restructured UCI’s Flags Research Set into the a few various other tables, one to carrying the world information (countryInfo) together with most other holding the new flag suggestions (flagInfo). countryInfo’s prie of the country and very important metrics eg city, people, words, etcetera. live-in it dining table. The latest changeable and you can detail flag info is an excellent hierarchical construction, and this lives in flagInfo. countryInfo and you will flagInfo enjoys a-one to a lot of dating into the identity of the country. Whenever repeated so it for your data lay, set up the same design to ensure proper efficiency.

In the event that items in the brand new slicer was chose together with level of facts chosen toward slicer are comparable to what amount of picked details to possess a country, inform you the new regions

  1. Matters the number of items chose regarding the slicer

Description: When the no items were chosen on slicer, show all countries. In the event the belongings in the fresh slicer have been chosen and also the quantity of points chosen on slicer was comparable to the number of chosen color to own a country https://datingmentor.org/nl/japanse-dating/, let you know the fresh places.

Description: Filter out the world desk merely in which PBISlicer Take a look at is true. On the filtered table, count this new rows of your desk.

When making the true dash, you really need to make certain the slicer’s “AND” reason effects all dashboard photos.

What is important to notice for this analogy is that i have a couple of tiered reason from inside the hierarchy. Ahead level, And you may reasoning is applicable (web browser. Need countries’ flags in which info is actually symbol Otherwise info was household). We are going to create four computed steps that will what you should do:

When the items in brand new slicer was indeed picked additionally the number of situations picked to the slicer are equivalent to just how many picked parameters to possess a country, tell you the fresh new regions

  1. Counts the amount of products chosen on slicer

Description: Filter out the world table only where HierarchySlicer Consider is valid. Towards filtered desk, count the fresh rows of your own dining table.

Description: Filter out the nation table just in which HierarchySlicer Glance at is valid. On the blocked table, assess the entire populace.

When designing the true dash, you should make certain the fresh slicer’s “AND” logic outcomes the dash pictures. Refer to these circumstances in order to make the previous cards and you can table visualizations.

  • I might not advocate that have numerous ‘AND’ logic slicers on a single dash, understandably the logic on the ‘Check’ DAX computations could become most complicated very quickly.
  • In addition to, I would personally not advocate that have numerous ‘AND’ reasoning slicers for a passing fancy dashboard since this can result in less than perfect show when i had found while using dos ‘AND’ reason hierarchySlicers in identical dashboard.
  • Manage a lot of quality assurance on your own research abilities!

Want countries’ flags in which you can find facts And stripes), while you are towards the bottom height, Or logic can be applied (internet explorer

There are various different ways as you are able to pertain new ‘AND’ logic DAX equations (web browser. having fun with variables, breaking the calculations right up far more, etc.). This is actually the strategy you to worked for myself and you can scaled well when you look at the design. The information and knowledge, studies restructuring code, and you will PBIX file on the article exists here. When you have any queries otherwise applying for grants new tutorial, go ahead and reach on the comments below or courtesy Fb. And, if you like for more information on Seismic App and you can how exactly we use Microsoft’s Fuel BI, visit us.