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.
Greetings everyone,
I want to combine multiple (two) columns that have parent/child relationship into one column when drilling down in a matrix. Let me give an example - the matrix looks like this now:
So I want a column name "ID" combined of the other two columns (Program ID and Phase ID) with the following conditions:
- For program it only shows the program ID
- When drilling down to the phases it shows the phase IDs
- and for the manager name it should show a blank value because there is no ID for it
------
So the result should look like this:
The data is comming from two tables: Programs and Phases;
There is a "one-to-many" relationship between the two tables (Program > Phase)
I appreciate any help regarding this issue and thanks in advance!
Solved! Go to Solution.
You could try
Combined ID =
IF (
ISINSCOPE ( 'Phase'[Name] ),
SELECTEDVALUE ( 'Phase'[Phase ID] ),
IF ( ISINSCOPE ( 'Program'[Name] ), SELECTEDVALUE ( 'Program'[Program ID] ) )
)
That worked!! Thanks so much!
You could try
Combined ID =
IF (
ISINSCOPE ( 'Phase'[Name] ),
SELECTEDVALUE ( 'Phase'[Phase ID] ),
IF ( ISINSCOPE ( 'Program'[Name] ), SELECTEDVALUE ( 'Program'[Program ID] ) )
)
User | Count |
---|---|
70 | |
70 | |
34 | |
23 | |
22 |
User | Count |
---|---|
96 | |
94 | |
50 | |
42 | |
40 |