Forum Discussion
Multi-catalog slicer
Hello Community!
I hope everything goes well, in my path of learning Power Bi, I have encountered a new challenge, I have 3 catalogs: one where my suppliers are, another where my service category is and another where the detail of those categories is. Where if I select a provider in the segmenter of the categories it should only show me the categories that refer to that provider and in turn the detail segmenter to its category. As I show below:
If I unfold each of them shows me their content, but not the segmentation that should exist in them. I have made a table that has the data to which each combination belongs; for example provider a corresponds to category 1 and detail b as shown in the table below
And I have also generated one of the relationships with which they must interact from the model...
But it still shows me the content of the entire catalog, so that when I deploy my provider it only shows me the categories it has access to and in turn the relationships with the details.
I will thank you infinitely if you support me in orienting me, what do I need to add or what else do I have to do so that my segmentation can work?
Best regards
Since it does not allow me to upload the file, it occurred to me that maybe published can work
Hi, Syndicate_Admin
You can try the following methods.
Measure1 = Var N1=SELECTEDVALUE(Suppliers[Suppliers]) Return IF(SELECTEDVALUE(Combinations[Suppliers])=N1,1,0)Place Measure1 in the Catalogue view and set it equal to 1.
Measure2 = Var N1=SELECTEDVALUE(Suppliers[Suppliers]) Var N2=SELECTEDVALUE(Catalogue[Catalogue]) Return IF(SELECTEDVALUE(Combinations[Suppliers])=N1&&SELECTEDVALUE(Combinations[Catalogue])=N2,1,0)Place Measure2 in the Details view and set it to equal 1.
At this point, after one slicer option is completed, the second slicer option is changed accordingly. The options for the third slicer depend on the selection of the first two slicers.
Is this the result you expect?
Best Regards,
Community Support Team _Charlotte
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
8 Replies
- amitchandakSuper User
Syndicate_Admin ,
Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.- Syndicate_AdminAdministrator
Hello, good day,
I have generated a sample file, but it does not allow me to upload it, I do not understand why...
Then I will share the tables
Suppliers Catalogue Provider A Provider B Provider C Catalogue Categories Category 1 Category 2 Category 3 Category 4 Categoroa 5 Details Catalog Detail to Detail b Detail c Detail d Table of Combinations
Provider A Category 1 Detail to Provider A Category 1 Detail b Provider B Category 2 Detail to Provider B Category 4 Detail to Provider C Category 3 Detail c Provider C Category 5 Detail c Provider C Category 5 Detail d In advance I thank you
Best regards
- Syndicate_AdminAdministrator
Hello!
In these days I have tried to upload the file but this legend marks me
Can you tell me how else I might share the file I generated?
I think with the example tables I went up it wasn't enough.
I have not yet been able to solve this situation.
I hope you can help me. Thank you
- v-zhangtiCommunity Support
Hi, Syndicate_Admin
I don't know if I understand it correctly. Are you trying to use the slicer function? As shown in the picture.
If the method I provided above can't solve your problem, what's your expected result? Could you please provide more details for it?
Best Regards,
Community Support Team _Charlotte
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- Syndicate_AdminAdministrator
Hello!
Thank you very much, for answering me.
However it is not precisely what I need, look according to my table, when selecting provider B, in the segmentation of data I should only get the categories that correspond to him, in this case only Category 2 and Category 4, but the reality is that in the segmentation I deploy all the categories ...
Look at my chart...
And after selecting the right category, let's say category 2, in the data segmenter I should only see the detail a, but not all, as it is happening ... 😞
The correct selection should be so
Right now to explain, use filters, but it should be automatic according to my table of combinations...
How can I do it?
I thank you in advance
Best regards
- v-zhangtiCommunity Support
Hi, Syndicate_Admin
You can try the following methods.
Measure1 = Var N1=SELECTEDVALUE(Suppliers[Suppliers]) Return IF(SELECTEDVALUE(Combinations[Suppliers])=N1,1,0)Place Measure1 in the Catalogue view and set it equal to 1.
Measure2 = Var N1=SELECTEDVALUE(Suppliers[Suppliers]) Var N2=SELECTEDVALUE(Catalogue[Catalogue]) Return IF(SELECTEDVALUE(Combinations[Suppliers])=N1&&SELECTEDVALUE(Combinations[Catalogue])=N2,1,0)Place Measure2 in the Details view and set it to equal 1.
At this point, after one slicer option is completed, the second slicer option is changed accordingly. The options for the third slicer depend on the selection of the first two slicers.
Is this the result you expect?
Best Regards,
Community Support Team _Charlotte
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.