Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
vika160
Helper III
Helper III

is there a possibility yo apply a slicer to 2 separate tables?

I was searching for ability to have ability to apply a slider to 2 different tables.

I have 2 tables:

Application 

APPIDTypeStatusAPPDate
1personalAprovedjan 1,2022
2personalAprovedjan 11,2022
3personalAprovedjan 7,2022
4personalClosedjan 8,2022
5CorporateAprovedjan 8,2022
6CorporateClosed 
7personalin progress 
8personalin progress 
9Corporatein progress 
10CorporateAprovedjan 9,2022

 

and Licence table:

LICIDAPPIDTypeStatusAPPDate
211personalActivejan 1,2022
252personalActivejan 11,2022
193personalTerminatedjan 7,2022
325CorporateActivejan 8,2022
2710CorporateActivejan 9,2022

 

Not all approved Applications became  licences.

Licence can be later terminated

applications and Licences have type and Approval date the same.

I have  visuals and I would like to have a slicer to apply filter by type, AppData  and Status for both of them.

totals Apps

vika160_0-1644880200327.png

 

Total Lic

vika160_1-1644880249786.png

 

I am not sure if this even possible.

Any advises/hints/help would be greatly appreciated.

 

Thank you!!!

2 ACCEPTED SOLUTIONS

Hi, @vika160 

Step 1: Create a calculation table (type table) to summarize the types
Step 2: Establish the relationship between the type table and the two fact tables
Step 3: Then create the type table based slicer.

Type Table = 
var _AppType=SUMMARIZE('Application',[Type])
var _LICType=SUMMARIZE('Licence table',[Type])
var _type=SUMMARIZE(
UNION(_AppType,_LICType),[Type])

return _type


Result:

vangzhengmsft_0-1645079317627.png

Please refer to the attachment below for details.

Hope this helps.

 

 

Best Regards,
Community Support Team _ Zeon Zheng


If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Thank you for your help. It is exactly what I was looking for. I will try your solution and report back. 

View solution in original post

9 REPLIES 9
v-angzheng-msft
Community Support
Community Support

Hi,  @vika160 

I have  visuals and I would like to have a slicer to apply filter by type, AppData  and Status for both of them.

I'm not very clear on the expected result you want. Are you trying to create a multi-field slicer?

vangzhengmsft_0-1645071051068.png

Could you please consider sharing more details about it and posting expected result so it is clear on what needs to be implemented?  And It would be great if there is a sample file without any sesentive information here.

 

It makes it easier to give you a solution.

  1. Sample (dummy dataset) data as text, use the table tool in the editing bar
  2. Expected output from sample data
  3. Explanation in words of how to get from 1. to 2.

 

Best Regards,
Community Support Team _ Zeon Zheng

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

TheoC
Super User
Super User

Hi @vika160 

 

You should be able to achieve what you're after by establishing a relationship between tables using APPID.

 

Hope this helps.

Theo

 

 

 

If I have posted a response that resolves your question, please accept it as a solution to formally close the post.

Also, if you are as passionate about Power BI, DAX and data as I am, please feel free to reach out if you have any questions, queries, or if you simply want to connect and talk to another data geek!

Want to connect?www.linkedin.com/in/theoconias

Yes, I tried.  It did not work the way I expected. May dig nto this more. thanks

One thing that I did not mentioned, as Application table has a lot payments yhe relations come as many-to-many

@vika160 are you after a Date slider? Or are you after a Slicer?  Apologies, I may have misunderstood!  If you are after a Date slider, then you need to create a Date table (https://dax.guide/calendarauto/) and then create a link between the two tables to your date table.  It will be a one to many relationship from Date to your Fact tables.

Hope this helps 🙂

 

If I have posted a response that resolves your question, please accept it as a solution to formally close the post.

Also, if you are as passionate about Power BI, DAX and data as I am, please feel free to reach out if you have any questions, queries, or if you simply want to connect and talk to another data geek!

Want to connect?www.linkedin.com/in/theoconias

Hi @TheoC ,

 

 Thank you for your reply.

I have date table and  2 facts tables: Appplications and Licences.
Both facts tables are linked to the date table by Approval Date.

Every fact table has Type field: Corporate or Individual.

What I need is to apply Type selection for both visuals.

 Right now it applies only to visual that is based on the saem table the slicer is using Type field from.

I thought I would be able to achieve this by linking the fact tables by AppID but my Apps table has multuple rows for the same AppID as it also has all financial transcations attached. When I am trying to insert a relations - it gives me a warning:  The relationship has cardinality many-to-many ... ... The relations are not creating even if I was trying to mark "Create this relationship active checkbox.

 I am not sure how to achieve what I am looking for.

I hope this helps you understand better what I am looking for.

Thank you for your help.

Hi, @vika160 

Step 1: Create a calculation table (type table) to summarize the types
Step 2: Establish the relationship between the type table and the two fact tables
Step 3: Then create the type table based slicer.

Type Table = 
var _AppType=SUMMARIZE('Application',[Type])
var _LICType=SUMMARIZE('Licence table',[Type])
var _type=SUMMARIZE(
UNION(_AppType,_LICType),[Type])

return _type


Result:

vangzhengmsft_0-1645079317627.png

Please refer to the attachment below for details.

Hope this helps.

 

 

Best Regards,
Community Support Team _ Zeon Zheng


If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Thank you for your help. It is exactly what I was looking for. I will try your solution and report back. 

It is working! 
Thank you very much!

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.