お客様の大切な家を守るため、蓄積されたノウハウを活かし、安心の技術とアフターフォロー、低価格でも良質なサービスをお約束します。

施工実績 ブログ

Modifying “OR” to “AND” Reasoning getting Stamina BI Slicers

2022.07.08

Modifying “OR” to “AND” Reasoning getting Stamina BI Slicers

Goal: Create the necessary determined areas to change “OR” to help you “AND” reason to possess Strength BI slicers (local slicer and also the hierarchySlicer).

I was using Strength BI to possess six months now. Particularly prior BI equipment I have tried personally, two hacks assist to change seemingly impossible team criteria toward super delighted responses:

A couple of months before, I happened to be requested to switch the new logic within a custom made artwork, the latest hierarchySlicer, off proving studies predicated on “OR” reason to demonstrating studies according to “AND” reasoning. After some research and lots of effort, I’m happy that that the expected hack has been seen!

Credit what away from Deprive Collie: The greater amount of you decide on, the greater number of you “get”. Because you select far more items in your own slicer, Fuel BI suggests the newest union of your studies or the type of set of issues fulfilled by choosing the slicer facts. With each more slicer item selected, the entire items of data chopped expands.

Regardless of the business needs could be, at the conclusion of the day we want to decide which users for the a team provides common possess. We want to would an enthusiastic intersection of your own study. So what if which i in the morning looking knowing and therefore countries’ flags act like both considering color and you may facts. We’re going to present this with one or two other Strength BI slicers:

If the contents of this new slicer was picked as well as the level of activities selected on the slicer try equal to what number of chosen parameters to own a country, let you know the brand new countries

  1. Native slicer
  2. hierarchySlicer

I do want to be clear about how exactly the information and knowledge try structured to have replicating this method. I restructured UCI’s Flags Analysis Lay on the several various other dining tables, one holding the world recommendations (countryInfo) and the almost every other carrying the newest flag pointers (flagInfo). countryInfo’s prie of the nation and you may important metrics for example area, inhabitants, vocabulary, etc. live in which table. The fresh varying and outline banner info is an excellent hierarchical structure, which resides in flagInfo. countryInfo and you can flagInfo has a single to a lot of relationship into term of the nation. When continual this for the analysis set, setup an equivalent construction to be sure best results.

In the event that belongings in brand new slicer was basically selected and the quantity of affairs selected to the slicer are equivalent to how many chosen parameters to own a country, show the fresh new regions

  1. Counts just how many situations chosen from the slicer

Description: If no activities have been chosen regarding escort services in Gilbert the slicer, show all of the places. In the event the items in the brand new slicer was in fact picked as well as the quantity of facts selected into the slicer is comparable to the amount of picked shade having a nation, inform you the new regions.

Description: Filter out the country table just where PBISlicer Check is valid. Towards the filtered dining table, matter the rows of desk.

When creating the genuine dashboard, you ought to guarantee that the newest slicer’s “AND” logic effects all the dashboard illustrations or photos.

What is very important to notice because of it analogy would be the fact i has actually several tiered logic within the hierarchy. At the top level, And you will logic applies (web browser. Need countries’ flags where facts is actually symbol Otherwise info was residence). We’re going to manage four computed methods that will do the following:

If items in the fresh new slicer had been chosen while the number of affairs chose with the slicer is actually equivalent to what number of selected parameters to own a nation, let you know the fresh regions

  1. Matters the number of affairs selected on the slicer

Description: Filter out the nation desk merely where HierarchySlicer Have a look at is true. Towards the blocked table, amount the rows of one’s table.

Description: Filter the world dining table merely where HierarchySlicer Examine is valid. Towards filtered desk, calculate the sum total populace.

When designing the true dashboard, you will want to make certain the new slicer’s “AND” reason consequences all the dashboard design. Relate to the above circumstances to create the last card and you will dining table visualizations.

  • I would personally not endorse with multiple ‘AND’ reason slicers for a passing fancy dash, obviously the fresh reason on the ‘Check’ DAX computations may become very challenging very fast.
  • Including, I might not recommend having numerous ‘AND’ logic slicers for a passing fancy dashboard since this can result in sub-standard performance whenever i had discovered when using dos ‘AND’ reasoning hierarchySlicers in the same dashboard.
  • Carry out a lot of quality assurance on your own study efficiency!

Require countries’ flags where there are information And you can streak), if you are towards the bottom top, Or reasoning is applicable (web browser

There are numerous other ways to pertain the newest ‘AND’ reasoning DAX equations (ie. playing with details, breaking the data right up significantly more, etc.). Here is the method one to worked for me and you may scaled better into the development. The data, research reorganizing code, and you can PBIX document about article can be obtained right here. When you have any queries or thoughts on new example, feel free to touch base in the comments below otherwise through Myspace. Together with, if you need more resources for Seismic App and you can the way we use Microsoft’s Power BI, check us out.

TOPへ