Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hello!
I have a matrix set up as the figure below
Basically the hierarchy of rows is NAME > GROUP > SECTION
The grouping was done automatically in powerBI matrix..
When you expand a GROUP within a NAME you will get the following breakdown along with the column1 values as shown
I want to create a measure or a calculated column that is conditional based on the values of column1 within each GROUP..
So if a GROUPhas atleast one value that says BLUE, then the result would return TRUE for all the SECTIONS within that group, and if none of the columns have BLUE, then return FALSE as shown below
I have been trying for a while now, any help is appreciated!
Solved! Go to Solution.
Hi @Haidarius ,
I have created a simple sample, please refer to it to see if it helps you.
Create 2 measures.
_1 = IF(MAX('Table'[VALUE])="Blue",1,0)
result =
VAR _1 =
MAXX (
FILTER ( ALL ( 'Table' ), 'Table'[name] = SELECTEDVALUE ( 'Table'[name] ) ),
[_1]
)
RETURN
IF ( _1 = 1, TRUE (), FALSE () )
Best Regards
Community Support Team _ Polly
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Haidarius ,
I have created a simple sample, please refer to it to see if it helps you.
Create 2 measures.
_1 = IF(MAX('Table'[VALUE])="Blue",1,0)
result =
VAR _1 =
MAXX (
FILTER ( ALL ( 'Table' ), 'Table'[name] = SELECTEDVALUE ( 'Table'[name] ) ),
[_1]
)
RETURN
IF ( _1 = 1, TRUE (), FALSE () )
Best Regards
Community Support Team _ Polly
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
My data set has the same group under different names, I believe that's why I cannot achieve your results (all true)
I added a second filter outside of the one in VAR HBP with the same conditions for name but for group and it worked
Hi @Haidarius ,
Does my answer help? If not, please provide your pbix file without privacy information.
How to Get Your Question Answered Quickly
Best Regards
Community Support Team _ Polly
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
19 | |
7 | |
6 | |
5 | |
5 |
User | Count |
---|---|
25 | |
10 | |
10 | |
9 | |
6 |