Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi everyone,
I'm making a measure to summarize it into a matrix table.
The measure that I want to do is to create the fourth column (Attending result) that shows a message "present" if one letter from column A has code as Control and other codes (A1, A5...) from column B and the same package from column C; and I would show also "no present" if one letter from column A has only code as Control from column B and the same package from column C.
Column A and B are from the same table (Table 1) and column C is from (Table 2).
In column C we have the same package for this example but it can changes.
Thank you for your response. Best regards.
Solved! Go to Solution.
Hi @Anonymous
Try the below.
Measure = VAR _tbl = ALLEXCEPT( 'Table', 'Table'[Column A], 'Table'[Column C] ) VAR _isControl = CALCULATE( COUNTROWS( 'Table' ), 'Table'[Column B] = "Control", _tbl ) > 0 VAR _isNotControl = CALCULATE( COUNTROWS( 'Table' ), NOT 'Table'[Column B] = "Control", _tbl ) > 0 RETURN IF( _isNotControl && _isControl, "Present", "Not present" )
Hi @Anonymous
Try the below.
Measure = VAR _tbl = ALLEXCEPT( 'Table', 'Table'[Column A], 'Table'[Column C] ) VAR _isControl = CALCULATE( COUNTROWS( 'Table' ), 'Table'[Column B] = "Control", _tbl ) > 0 VAR _isNotControl = CALCULATE( COUNTROWS( 'Table' ), NOT 'Table'[Column B] = "Control", _tbl ) > 0 RETURN IF( _isNotControl && _isControl, "Present", "Not present" )
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
109 | |
98 | |
77 | |
66 | |
54 |
User | Count |
---|---|
144 | |
104 | |
100 | |
86 | |
64 |