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
anshenterprice
Frequent Visitor

Automtic filter selection on the second dataset of page

Hi Team,

I have two datasets

Data set 1  Data set 2
CategoryStocknameValue  CategoryStocknameValue
EquityReliance3  EquityReliance3
EquityOlectra4  EquityOlectra4
EquityJBMA1  EquityJBMA1
CommodityPFC3  CommodityPFC3
CommodityCrud5  CommodityCrud5
CommodityONGC1  CommodityONGC1


I have two datasets the above its just sample data but we have more columns but simmiler column just i added in the above dataset and two powerbi pages

in the first power page(dataset1)- date and Stockname are slicer , once we select any stockname from the filter its diplaying data on the page and the second page(dataset2)- date and Category are slicers once we select any catergory then its displaying all stocks related informatin in the page

requirement- when user select any stock name from the firstpage and once he goes to second page then it should select under the same catergory related information with the date also.

Thanks

2 ACCEPTED SOLUTIONS
amitchandak
Super User
Super User

@anshenterprice , Create common dimension tables category and stock name and then join them back with , Your tables and use dimensions in visual

Stockname= distinct(UNION(distinct(Dataset1[Stockname]), distinct(Dataset2[Stockname])))

 

Category = DISTINCT(UNION(DISTINCT(Dataset1[Category]),DISTINCT(Dataset2[Category])))

 

Then use drill through

 

Power BI Drill Through - More than one level: https://www.youtube.com/watch?v=hCAAvpppQmk

Power BI- DAX: When I asked you to create common tables: https://youtu.be/a2CrqCA9geM
https://medium.com/@amitchandak/power-bi-when-i-asked-you-to-create-common-tables-a-quick-dax-soluti...

View solution in original post

v-yiruan-msft
Community Support
Community Support

Hi @anshenterprice ,

@amitchandak has already provided a viable solution, you can check if it is suitable for your scenario. Here there is another method to achieve your requirement, you can find the details in the attachment...

1. Create a relationship between the table 'Data set 1' and 'Data set 2' base on the field [Stockname]

vyiruanmsft_2-1706862845699.png

2. Create a slicer which applied on the field 'Data set 1'[Stockname]in page 1 and page 2 separately, and they are sync slicers. Then when you select any option in page 1, it will sync in page 2...

Page 1Page 1

Page 2Page 2

Hope they can help you find the solution that best fits your needs.

Best Regards

Community Support Team _ Rena
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

2 REPLIES 2
v-yiruan-msft
Community Support
Community Support

Hi @anshenterprice ,

@amitchandak has already provided a viable solution, you can check if it is suitable for your scenario. Here there is another method to achieve your requirement, you can find the details in the attachment...

1. Create a relationship between the table 'Data set 1' and 'Data set 2' base on the field [Stockname]

vyiruanmsft_2-1706862845699.png

2. Create a slicer which applied on the field 'Data set 1'[Stockname]in page 1 and page 2 separately, and they are sync slicers. Then when you select any option in page 1, it will sync in page 2...

Page 1Page 1

Page 2Page 2

Hope they can help you find the solution that best fits your needs.

Best Regards

Community Support Team _ Rena
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
amitchandak
Super User
Super User

@anshenterprice , Create common dimension tables category and stock name and then join them back with , Your tables and use dimensions in visual

Stockname= distinct(UNION(distinct(Dataset1[Stockname]), distinct(Dataset2[Stockname])))

 

Category = DISTINCT(UNION(DISTINCT(Dataset1[Category]),DISTINCT(Dataset2[Category])))

 

Then use drill through

 

Power BI Drill Through - More than one level: https://www.youtube.com/watch?v=hCAAvpppQmk

Power BI- DAX: When I asked you to create common tables: https://youtu.be/a2CrqCA9geM
https://medium.com/@amitchandak/power-bi-when-i-asked-you-to-create-common-tables-a-quick-dax-soluti...

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.