Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
I have created a slicer (slicer 1) that shows only my company's products, with the remaining grouped in "Others".
Slicer 1
Each Product is associated with a different Market. If I select one product it will automatically select a Market. Example: Product A filters for Market X; Product B filters for Market Y; so on.
I would like to have a table that shows all Product A competitors' in Market X. I haven't been able to create a measure that ignores the selection in Slicer 1 (so it doesn't only show Product A, Product B, ... in the table) but keeps it associated market. I would like to have something like this:
Market X Performance
Market Y Performance
Any tips?
Many thanks,
AS
Solved! Go to Solution.
Hi @aicms91 ,
I created a sample pbix file(see attachment) for you, please check whether that is what you want.
1. Create a product dimension table
Products = VALUES('Table'[Product])
2. Create a measure as below to judge if the current product should display or not:
Flag =
VAR _selproducts =
ALLSELECTED ( 'Products'[Product] )
VAR _market =
CALCULATETABLE (
VALUES ( 'Table'[Market] ),
FILTER ( ALLSELECTED ( 'Table'[Product] ), 'Table'[Product] IN _selproducts )
)
VAR _products =
CALCULATETABLE (
VALUES ( 'Table'[Product] ),
FILTER ( 'Table', 'Table'[Market] IN _market )
)
RETURN
IF ( SELECTEDVALUE ( 'Table'[Product] ) IN _products, 1, 0 )
3. Create a table visual and apply the visual-level filter with the condition(Flag is 1)
If the above one can't help you get the desired result, please provide some sample data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. You can refer the following link to upload the file to the community. Thank you.
How to upload PBI in Community
Best Regards
Hi @aicms91 ,
I created a sample pbix file(see attachment) for you, please check whether that is what you want.
1. Create a product dimension table
Products = VALUES('Table'[Product])
2. Create a measure as below to judge if the current product should display or not:
Flag =
VAR _selproducts =
ALLSELECTED ( 'Products'[Product] )
VAR _market =
CALCULATETABLE (
VALUES ( 'Table'[Market] ),
FILTER ( ALLSELECTED ( 'Table'[Product] ), 'Table'[Product] IN _selproducts )
)
VAR _products =
CALCULATETABLE (
VALUES ( 'Table'[Product] ),
FILTER ( 'Table', 'Table'[Market] IN _market )
)
RETURN
IF ( SELECTEDVALUE ( 'Table'[Product] ) IN _products, 1, 0 )
3. Create a table visual and apply the visual-level filter with the condition(Flag is 1)
If the above one can't help you get the desired result, please provide some sample data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. You can refer the following link to upload the file to the community. Thank you.
How to upload PBI in Community
Best Regards
This is brilliant, it worked! THANK YOU so so much!!! 😀
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
147 | |
85 | |
66 | |
52 | |
46 |
User | Count |
---|---|
215 | |
90 | |
83 | |
66 | |
58 |