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.
My data consists of four columns: Supplier, Brand, Product, and Price. Each Supplier has multiple brands (with Brand being unique across all suppliers), and each Brand has multiple products. How can I display only the products that are common across the selected brands when I place Brand in the columns, Product in the rows, and Price in the values?
For example:
In the picture, matrix should only show the 2 common products in red circle.
Solved! Go to Solution.
Try creating a measure like
Matches all chosen brands =
VAR NumVisibleBrands =
CALCULATE (
COUNTROWS ( VALUES ( 'Table'[Brand] ) ),
ALLSELECTED ( 'Table'[Brand] ),
VALUES ( 'Table'[Product] )
)
VAR NumChosenBrands =
COUNTROWS ( ALLSELECTED ( 'Table'[Brand] ) )
VAR Result =
IF ( NumVisibleBrands = NumChosenBrands, 1 )
RETURN
Result
Add this as a filter to the matrix visual and set it to only show when the value is 1.
Hi,
Share the download link of the PBI file.
Hi @powerbineeded ,
Is my follow-up just to ask if the problem has been solved?
johnt75's solution worked in my test.
If so, can you accept the correct answer as a solution or share your solution to help other members find it faster?
Thank you very much for your cooperation!
Best Regards,
Dengliang Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Try creating a measure like
Matches all chosen brands =
VAR NumVisibleBrands =
CALCULATE (
COUNTROWS ( VALUES ( 'Table'[Brand] ) ),
ALLSELECTED ( 'Table'[Brand] ),
VALUES ( 'Table'[Product] )
)
VAR NumChosenBrands =
COUNTROWS ( ALLSELECTED ( 'Table'[Brand] ) )
VAR Result =
IF ( NumVisibleBrands = NumChosenBrands, 1 )
RETURN
Result
Add this as a filter to the matrix visual and set it to only show when the value is 1.
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 |
---|---|
143 | |
85 | |
66 | |
51 | |
45 |
User | Count |
---|---|
217 | |
89 | |
82 | |
66 | |
57 |