Close

Changing “OR” to “AND” Reason getting Fuel BI Slicers

Changing “OR” to “AND” Reason getting Fuel BI Slicers

Goal: Create the required calculated fields to alter “OR” to “AND” reasoning to own Energy BI slicers (indigenous slicer while the hierarchySlicer).

I have already been using Energy BI to possess 6 months now. Such as for instance prior BI units I have tried personally, a couple cheats help change relatively hopeless organization requirements with the awesome delighted reactions:

A few months before, I was asked to switch the new logic contained in this a customized visual, the brand new hierarchySlicer, regarding appearing data centered on “OR” reason so you can exhibiting analysis considering “AND” logic. After some research and many effort, I am pleased you to definitely your required deceive is known!

Borrowing from the bank the words of Rob Collie: The greater you decide on, more your “get”. As you look for even more belongings in the slicer, Electricity BI reveals the partnership of your own study and/or type of listing of points met by deciding on the slicer things. With every extra slicer goods picked, the full items of investigation chopped expands.

Regardless of the business specifications will be, at the end of a single day you want to determine which participants inside a group enjoys popular enjoys. We wish to perform an intersection of studies. Very can you imagine that i was seeking once you understand and that countries’ flags are similar to one another predicated on colour and facts. We are going to expose so it that have two additional Electricity BI slicers:

In the event the belongings in the brand new slicer have been selected plus the level of products picked on slicer are equal to how many chosen variables to have a nation, show the nations

  1. Native slicer
  2. hierarchySlicer

I do want to become transparent about precisely how the knowledge is organized to have duplicating this process. We restructured UCI’s Flags Analysis Put towards a couple of different dining tables, you to carrying the country information (countryInfo) together with almost every other carrying the banner pointers (flagInfo). countryInfo’s prie of the nation and extremely important metrics such town, population, language, etc. reside in which table. Brand new changeable and you will outline banner information is an effective hierarchical build, and therefore lives in flagInfo. countryInfo and flagInfo features a-one to several relationships toward identity of the nation. Whenever repeating so it to suit your research lay, set up a comparable design to be sure proper efficiency.

If the contents of the new slicer was indeed picked in addition to amount of things picked toward slicer is actually equivalent to how many chose parameters having a nation, let you know the nations

  1. Counts what number of affairs selected regarding slicer

Description: If the no issues have been selected from the slicer, let you know the countries. In the event that belongings in the brand new slicer had been chose additionally the number of situations chose towards the slicer was equal to just how many picked color to possess a country, inform you the latest countries.

Description: Filter the world desk simply where PBISlicer Glance at is true. Towards the blocked dining table, matter the new rows of your own dining table.

When creating the real dash, you will want to make sure that the brand new slicer’s “AND” reasoning outcomes all dash design.

The most important thing to notice for it analogy is the fact i possess one or two tiered logic during the ladder. On the top top, And you may reason applies (web browser. Need countries’ flags in which information was symbol Otherwise details try quarters). We are going to do five computed steps that will list of positive actions:

If the contents of the fresh new slicer was chose and number of affairs selected with the slicer try comparable to how many chose details to own a country, reveal this new places

  1. Counts the amount of items chosen in the slicer

Description: Filter the nation dining table simply where HierarchySlicer View holds true. To the blocked desk, number the fresh rows of your own table.

Description: Filter the nation desk simply where HierarchySlicer Have a look at holds true. Towards blocked desk, determine the whole population.

When designing the real dashboard, you ought to ensure that the slicer’s “AND” logic consequences all the dash artwork. Relate to the above mentioned case which will make the prior cards and you may table visualizations.

  • I’d not recommend having multiple ‘AND’ reason slicers for a passing fancy dash, as you can imagine the logic to your ‘Check’ DAX calculations can become most tricky very fast.
  • Plus, I might not recommend that have several ‘AND’ reasoning slicers for a passing fancy dash since this can result Interracial dating sites in very poor show as i got found while using the dos ‘AND’ logic hierarchySlicers in the same dashboard.
  • Manage lots of quality assurance on your own investigation results!

Want countries’ flags where discover facts And you can stripes), when you are at the end height, Otherwise reasoning enforce (ie

There are many different alternative methods to incorporate the fresh ‘AND’ logic DAX equations (web browser. using variables, damaging the computations up alot more, an such like.). This is basically the approach one to worked for me and scaled really in the production. The details, studies reorganizing code, and PBIX file regarding the post exists right here. When you have any questions or thoughts on the newest lesson, go ahead and reach on statements lower than otherwise using Myspace. And, if you would like for more information on Seismic Application and you may how exactly we have fun with Microsoft’s Stamina BI, check us out.

Leave a Reply

Your email address will not be published. Required fields are marked *